ComputeSHA1Hash
Encrypts a string using the Secure Hash Algorithm 1 (SHA-1), returning the encrypted string as its result.
SHA-1 is considered a weak form of encryption by modern standards. It has been largely superseded by the more secure ComputeSHA256Hash function.
Syntax
ComputeSHA1Hash( StringValue );
Parameters
Parameter Name | Type | Description | Optional? | Default Value |
---|---|---|---|---|
StringValue | String | The string to encrypt. | No | n/a |
Output
The encrypted version of the original string.
Use Case
Any time you want to convert a text string into an encrypted hash for security purposes, but you aren't concerned by the possibility of a determined hacker cracking the encryption, you have the option to use ComputeSHA1Hash.
Take this expression for example:
ComputeSHA1Hash("I am the walrus");
Executing this expression will return the following encrypted value:
257CB4B154368A392EBE9338782E013CEF25356F