This function only exists for backward compstibility to Railo 4.0 or older version that has produced a incorrect result for non us-ascii caharacters,
Only use this function for backward compatibility.
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
Function HASH40
Example
hash40(any input,[string algorithm,[string encoding,[number numIterations]]]):string
Arguments
The arguments for this function are set. You can not use other arguments except the following ones.
Name | Type | Required | Description |
---|---|---|---|
input | any | Yes | String to hash. |
algorithm | string | No |
The algorithm to use to hash the string. Supported are the following algorithms: |
encoding | string | No |
A string specifying the encoding to use when converting the string to byte data used by the hash algorithm. |
numIterations | number | No | number of iterations; default is 1. |