ComputeSHA256Hash
Encrypts a string using the Secure Hash Algorithm 256 (SHA-256), returning the encrypted string as its result.
ComputeSHA256Hash is a more advanced encryption method than its predecessor, ComputeSHA1Hash, which uses a less secure and outdated method.
Syntax
ComputeSHA256Hash( 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
If you want to encrypt a password or other type of sensitive information, you should adhere to a modern encryption standard by using ComputeSHA256Hash.
Take this expression for example:
ComputeSHA256Hash("I am the walrus");
Executing this expression will return the following encrypted value:
E11EFDBA883A02011B5BFDD28CEEF0D0A57834D9162123F88F8B8B5595F3A17B