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