sha1()

Table of Contents
This page is work in process.

Definition

sha1() takes a string as an argument and returns the secure hash value of that string based on the FIPS compliant SHA-1 hash function.

Examples

The following example generates a SHA-1 hash for values in ID column.

| makeresults count=3
| eval row=1
| accum row
| eval name=case(row==1, "Alice", row==2, "Bob", row==3, "Emma")
| eval ID=case(row==1, "111-111", row==2, "222-222", row==3, "333-333")
| eval hashID=sha1(ID)
Screenshot of the previous example’s result

Further Reading