Garry's Mod Wiki

util.SHA1

  string util.SHA1( string stringToHash )

Description

Generates the SHA-1 hash of the specified string.

SHA-1 is considered cryptographically broken and is known to be vulnerable to a variety of attacks. If security is a concern, use util.SHA256.

Arguments

1 string stringToHash
The string to calculate the SHA-1 hash of.

Returns

1 string
The SHA-1 hash of the string in hexadecimal form.