Skip to content

crypto.password

crypto.password provides high-level password hashing API. It should be used instead of crypto.hash when you need to verify passwords.

Summary

Methods

MethodSignatureDescription
hash(password: string, salt: string?) -> stringHashes a password.
verify(password: string, hash: string) -> booleanVerifies a password against a hash.