PlatformPasswordUtils API
Collaborate with us
Edit this page on GitHub
The PlatformPasswordUtils API provides actions for validating and securely storing passwords in the database, compliant with established cryptographic practices. This is accomplished through actions that enable you to:
- generate a salted password and hash it using the MD5 hash algorithm (deprecated)
- generate a salted password and hash it using the SHA512 hash algorithm
- validate a password against its salted hash
Summary
Action | Description |
---|---|
GenerateSaltedMD5Hash | Salts the password with a fixed number and hashes it using the MD5 hash algorithm. |
GenerateSaltedSHA512Hash | Salts the password with a 32 bytes random number and hashes it using the SHA512 hash algorithm. |
ValidatePassword | Validates a password against the expected salted password hash. |
Actions
GenerateSaltedMD5Hash
Salts the password with a fixed number and hashes it using the MD5 hash algorithm.
Inputs
- PlainTextPassword
- Type: Text. Mandatory.
The password to salt and hash.
Outputs
- SaltedMD5HashPassword
- Type: Text.
The password salted and hashed with MD5.
GenerateSaltedSHA512Hash
Salts the password with a 32 bytes random number and hashes it using the SHA512 hash algorithm.
Inputs
- PlainTextPassword
- Type: Text. Mandatory.
The password to salt and hash.
Outputs
- SaltedSHA512HashPassword
- Type: Text.
The password salted and hashed with SHA512.
ValidatePassword
Validates a password against the expected salted password hash.
Inputs
- PlainTextPassword
- Type: Text. Mandatory.
The password in plain text. - SaltedHashedPassword
- Type: Text. Mandatory.
The expected password, salted and hashed.
Outputs
- IsValid
- Type: Boolean.
Returns true if the password matches the given salted and hashed password.