text sha1(text, flags)
Return an SHA-1 cryptographic 160-bit hash code of text as characters in the UTF-8 charset or an hexadecimal representation of bytes.
Flags:
Flag | Description |
---|---|
"h" | Expect the text to be an hexadecimal representation of bytes, see hexEncode function. |
Security warning! The SHA-1 hash algorithm is no longer considered secure and should not be use for cryptographic purposes.