npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

pw-to-ek

1.2.0

@mafintosh

npmSnykSocket
Downloads:476
$ npm install pw-to-ek
DailyWeeklyMonthlyYearly

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