JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 9516
  • Score
    100M100P100Q125833F
  • License MIT

Simple secure string password convertor

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

NPM

npm version Downloads

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 cpass

Usage

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.