We've been making changes to how we organize and display our docs. Our work isn't done but we'd love your feedback.

digest.hash_sha1()

Use the SHA-1 hash. Returns a hex-encoded string.

Format

STRING
digest.hash_sha1(STRING input)

Examples

1
2
3
declare local var.hash_sha1 STRING;
set var.hash_sha1 = digest.hash_sha1("123456789");
# var.hash_sha1 is now "f7c3bc1d808e04732adf679965ccc34ca7ae3441"