Cryptography (crypto)

sha1

unique

Create and return a unique 40-character sha1 hash string. If seed is provided, it will be included in the string that is encoded into the hash. The function produces a different value each time it is called.

 

{ }
[{"paths":[],"data":{"crypto":"crypto","call":"crypto.sha1.unique","crypto.sha1.unique":"unique","uuid":"071651f79538c5be3173b651cc9bcb7e","args":{"seed":"hello world"},"height":32,"width":120,"step":"Create unique sha1 hash","data_to_var":"hash","y":0,"x":0,"type":"library","maxpaths":1}}]

Example Response

{"hash":"e4cfb7c6fab08ef135a1289c12a0fe0b02d93a29"}

hexdigest

Create and return a 40-character sha1 hash using the string provided.

 

{ }
[{"paths":[],"data":{"crypto":"crypto","call":"crypto.sha1.hexdigest","crypto.sha1.hexdigest":"hexdigest","uuid":"071651f79538c5be3173b651cc9bcb7e","args":{"string":"hello world"},"height":32,"width":120,"step":"Create sha1 hash","data_to_var":"hash","y":0,"x":0,"type":"library","maxpaths":1}}]

Example Response

{"hash":"2aae6c35c94fcfb415dbe95f408b9ce91ee846ed"}