Web Text
4 nodes
On this page 4
Hash Password
FunctionA 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
| name | type | default | description |
|---|---|---|---|
| password | Text | — |
Returns
| Hash | Text |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Web Text
- Package
- Web Applications
Html Encode
FunctionA 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
| name | type | default | description |
|---|---|---|---|
| text | Text | — |
Returns
| Html | Text |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Web Text
- Package
- Web Applications
Json String
FunctionA 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
| name | type | default | description |
|---|---|---|---|
| text | Text | — |
Returns
| Json | Text |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Web Text
- Package
- Web Applications
Verify Password
FunctionWhether 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
| name | type | default | description |
|---|---|---|---|
| password | Text | — | |
| hash | Text | — |
Returns
| Matches | Truth |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Web Text
- Package
- Web Applications