Integration Server 10.15 | Built-In Services Reference Guide | Security Folder | Summary of Elements in this Folder | pub.security:generateHashValue
 
pub.security:generateHashValue
WmPublic. Returns the hashed value for a string input.
Input Parameters
inputString
String. The string that you want to convert to a hash value.
hashAlgorithm
String. Optional. The algorithm to generate the hash value. Select one of the following:
*MD5
*SHA256
*SHA384
*SHA512
The default value is SHA256.
saltValue
byte[ ]. Optional. A random value that you can prefix to the input string before hashing.
Note:
To use a salt value in this service, run the pub.security:generateSalt service and map the generated salt value to this parameter.
Output Parameters
hashedValue
String. Hashed value of the input string.
status
String. Indicates whether the inputString is successfully hashed or not. If successful, status is success. Otherwise, status contains failure along with an error message.
Usage Notes
Use the pub.security:generateHashValue service to generate a hash value for any input string. For example, you can create a secure hashedValue for a user's password. Additionally, you can run the pub.security:generateSalt service to generate a salt value, which can be passed to the pub.security:generateHashValue service to generate a unique and stronger hashedValue, each time you run the pub.security:generateHashValue service.