xdmp.crypt2( password as String ) as String
Calculates the password hash for the given plain-text password.
Parameters | |
---|---|
password | String to be hashed. |
The password is encrypted using sha256 encoding and it is salted. A salt is generated using base-64 representation of a random number. This minimizes the probability of hash collisions even if different users have the same password.
xdmp.crypt2("123abc"); => "$2$aUI4j7YVqvecKkJ7QrK01.$2$ElWEwaxZ"
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.