sha1

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:

FlagDescription
"h"Expect the text to be an hexadecimal representation of bytes, see hexEncode function.

Parameters

  1. text — text as characters in the UTF-8 charset or an hexadecimal representation of bytes.
  2. flags — optional text where each character is a flag.

Returns