Loading TOC...

xdmp.crypt2

xdmp.crypt2(
   $password as String
) as String

Summary

Calculates the password hash for the given plain-text password.

Parameters
$password String to be hashed.

Usage Notes

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.

Example

  xdmp.crypt2("123abc");
  => "$2$aUI4j7YVqvecKkJ7QrK01.$2$ElWEwaxZ"

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.

Comments

The commenting feature on this page is enabled by a third party. Comments posted to this page are publicly visible.