namespace
Password
namespace Password
Hash and verify passwords using argon2 or bcrypt
The asynchronous functions run in a worker thread.
interface Argon2Algorithm
- timeCost?: number
Number of iterations. More iterations means more computation and a longer hash time.
interface BCryptAlgorithm
- type AlgorithmLabel = BCryptAlgorithm | Argon2Algorithm['algorithm']