@zugriff/cryptography
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

@zugriff/cryptography

This package is part of the zugriff ecosystem. It benefits from a direct integration on our systems and falls back to WASM on yours.

@zugriff/cryptography adheres to the OWASP minimum requirements. Hashes are returned PHC formatted.

Usage

npm i --save @zugriff/cryptography

Argon2

Recommended

import { argon2id } from '@zugriff/cryptography';

// Create account
const password = await argon2id.hash('password'); // $argon2id$v=19..

// Login
await argon2id.verify('password', password); // true

Scrypt

import { scrypt } from '@zugriff/cryptography';

// Create account
const password = await scrypt.hash('password'); // $scrypt$ln=17..

// Login
await scrypt.verify('password', password); // true

Package Sidebar

Install

npm i @zugriff/cryptography

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

24 kB

Total Files

8

Last publish

Collaborators

  • lucagoslar