Function hashPassword

  • Hashes the password and returns a 256-bit hash and 128-bit salt. The 256-bit hash can be used as a key for symmetric encryption/decryption. Pass the salt in case you are trying to get the same hash. The returned buffers are guaranteed to unpooled. This means the underlying ArrayBuffer is safely transferrable.

    Parameters

    Returns [PasswordHash, PasswordSalt]

Generated using TypeDoc