R3m/framework Function reference string.sha1

{string.sha1(String $string, Boolean $raw_output=false)}

Calculate the sha1 hash of a string.

Calculates the sha1 hash of string using the ยป US Secure Hash Algorithm 1.

If the optional raw_output is set to true, then the sha1 digest is instead returned in raw binary format with a length of 20, otherwise the returned value is a 40-character hexadecimal number.

Returns the sha1 hash as a string.

More information:


Last modified: 2021-06-07

© 2021 universeorange.com