Divooka Reference

Web Text

4 nodes

On this page 4

Hash Password

Function

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.

Signature
HashPassword(password: Text) -> Text
string HashPassword(string password)

Parameters

nametypedefaultdescription
passwordText—

Returns

HashText
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Web Text
Package
Web Applications

Html Encode

Function

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

Signature
HtmlEncode(text: Text) -> Text
string HtmlEncode(string text)

Parameters

nametypedefaultdescription
textText—

Returns

HtmlText
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Web Text
Package
Web Applications

Json String

Function

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}}}.

Signature
JsonString(text: Text) -> Text
string JsonString(string text)

Parameters

nametypedefaultdescription
textText—

Returns

JsonText
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Web Text
Package
Web Applications

Verify Password

Function

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

Signature
VerifyPassword(password: Text, hash: Text) -> Truth
bool VerifyPassword(string password, string hash)

Parameters

nametypedefaultdescription
passwordText—
hashText—

Returns

MatchesTruth
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Web Text
Package
Web Applications