元编程参考文档

网页文本

4 个节点

本页内容 4

哈希密码

函数

A password made safe to store: salted and stretched (PBKDF2 with SHA-256), so the stored text cannot be turned back into the password. Store this, never the password; check a sign-in with Verify Password.

签名
哈希密码(密码: 文本) -> 文本
string HashPassword(string password)

参数

名称类型默认值说明
密码文本—

返回

哈希文本
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
网页文本
所属包
网络应用

HTML 编码

函数

A value as page text: <, >, & and quotes escaped, so what a visitor typed is shown and never run.

签名
HTML 编码(文本: 文本) -> 文本
string HtmlEncode(string text)

参数

名称类型默认值说明
文本文本—

返回

HTML文本
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
网页文本
所属包
网络应用

JSON 文本

函数

A value as a JSON string, quotes included and everything that needs it escaped - to put into a JSON template made with Format, e.g. {{"title": {0}}}.

签名
JSON 文本(文本: 文本) -> 文本
string JsonString(string text)

参数

名称类型默认值说明
文本文本—

返回

JSON文本
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
网页文本
所属包
网络应用

验证密码

函数

Whether a password is the one a stored hash was made from (by Hash Password). False for anything that is not such a hash.

签名
验证密码(密码: 文本, 哈希: 文本) -> 真否
bool VerifyPassword(string password, string hash)

参数

名称类型默认值说明
密码文本—
哈希文本—

返回

是否匹配真否
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
网页文本
所属包
网络应用