Skip to main content

NestJS - Cryptography

Secure NestJS cryptography module 🔐

Uses node:crypto

Under the hood, it uses the native crypto nodejs library. So the wheel hasn't been reinvented, it's just been given a layer.

Uses Argon2

As a derivation function or password hashing algorithm, it uses Argon2. The winner of the PHC Password Hashing Competition.

High Level API

It offers a high level API so you don't have to worry about using a good cryptographic implementation. This library take care of this