Socket
Book a DemoInstallSign in
Socket

pw-to-ek

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pw-to-ek

Derive a secure encryption key from a password using sodium's scrypt implementation.

latest
npmnpm
Version
1.2.0
Version published
Maintainers
2
Created
Source

pw-to-ek

Derive a secure encryption key from a password using sodium's scrypt implementation.

 const generate = require('pw-to-ek')
 const sodium = require('sodium-native')
 const salt = b4a.alloc(sodium.crypto_pwhash_scryptsalsa208sha256_SALTBYTES)
 const key = await generate('password', salt)
 console.log(key) // 102 bytes Buffer

FAQs

Package last updated on 12 Apr 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts