C.45. SHA1()

SHA1(string)
Calculates the SHA1 hash (checksum) of a string (returns hexadecimal).
; Calculate the SHA1 hash of "Hello World":
exten => 123,1,Set(sha1hash=${SHA1(Hello World)})

Note

Internal help for this application in Asterisk 1.4:
  -= Info about function 'SHA1' =- 

[Syntax]
SHA1(<data>)

[Synopsis]
Computes a SHA1 digest

[Description]
Generate a SHA1 digest via the SHA1 algorythm.
 Example:  Set(sha1hash=${SHA1(junky)})
 Sets the asterisk variable sha1hash to the string '60fa5675b9303eb62f99a9cd47f9f5837d18f9a0'
 which is known as his hash
diff output to internal help in Asterisk 1.2:
-- not available in Version 1.2 --