cpass
π Simple secure string password convertor
Installation
npm install cpassUsage
JavaScript
const Cpass = require('cpass').Cpass;
const cpass = new Cpass();
const password = 'password';
const secured = cpass.encode(password);
// secured: "40bbb043608f54d....MhKghXTcaR2A//yNXg=="
// is unique on different machines
const unsecured = cpass.decode(secured);
// unsecured: 'password'TypeScript
Encryption with master key
Tests
Local run
Run in Docker for specific Node.js version
Comments
Last updated
Was this helpful?