crypto.sha256
crypto.sha256
Function
Returns the SHA-256 lowercase hexadecimal digest of the current text.
Syntax
crypto(text).sha256()
Parameters
None.
Return value
| Type | Description |
|---|---|
| String | SHA-256 digest. |
Code Example
result = crypto('BT').sha256() // Output: 4ea3d68e3581fa27f86acaa247b297686a8e1a8fecd5523cd8314f14b6a28c31 print result
Notes
- Input text is digested in UTF-8 bytes.