string.hash()
Converts a variable-length string to a 32-byte, hexadecimal string, using the MD5 algorithm. (It is not possible to convert the hash result back to the source string.) 32-byte, hexadecimal string
string.hash( algorithm=string, encoding=string, numIterations=number )
Returns: String
| Argument | Description |
|---|---|
|
algorithm
string,
optional
|
edit
The algorithm to use to hash the string. Supported are the following algorithms:
|
|
encoding
string,
optional
|
edit
A string specifying the encoding to use when converting the string to byte data used by the hash algorithm. |
|
numIterations
number,
optional
|
edit
The number of times to iterate hashing. A greater number of iterations will result in a cryptographically stronger hash but will also take more time to generate that hash. The default value is 1. For algorithm quick, only 1 is allowed |