元編程參考文件

網頁文字

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)

參數

名稱型別預設值說明
密碼文字—
雜湊文字—

返回

是否匹配真否
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
網頁文字
所屬包
網路應用