HashSHA256 function
Syntax
HashSHA256(cleartext_string)
Description
Use the HashSHA256 function to generate a hashed string that is always 44 characters in length. The input is variable length, with no maximum size.
Generally the HashSHA256 function is used like a checksum—for example, to compare hashed values to ensure they match.
Parameters
| Parameter | Description |
|---|---|
|
cleartext_string |
Specifies the string, such as a password, to be hashed. |
Returns
A hash string.
Example
&HASHVALUE = HashSHA256(&newtext);
&HASHPRIOR = REC.STOREDHASH.Value;
If Not (&HASHVALUE = &HASHPRIOR) Then
/* do error handling */
End-If;
Related Topics