Package Exports
- cpass
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (cpass) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
cpass - secured password simplified conversion
Encrypts password to some sort of a 'secure string' to be stored in text configs to reduce risks of a silly leak.
Decripts a 'secure string' to plain password.
Installation
npm install --save-dev cpassUsage
var Cpass = require("cpass");
var cpass = new Cpass();
var password = "password";
var secured = cpass.encode(password);
// secured: "40bbb043608f54d....MhKghXTcaR2A//yNXg==" - is unique on different machines
var unsecured = cpass.decode(secured);
// unsecured: "password"
var blablabla = "blablabla";
var unblablabla = cpass.decode(blablabla);
// unblablabla: "blablabla"Comments
This module is not for a real security purposes. Just for 'dummy hackers' secure and minifying risks of any password storage in a plain form.
Once encoded, the password secured form can be decoded only on the same machine, but the logic behind this is very straightforward.
