node-fpe-ascii

1.0.0 • Public • Published

Build Status XO code style

node-fpe-ascii

Format-Preserving symmetric encryption in Node.js.

Simply wraps node-fpe, adding default support for all ASCII characters.

Usage

const Encryptor = require('node-fpe-ascii');
const encryptor = new Encryptor({ password: 'veronica' });
 
// Note: The ciphertext has the same length as the plaintext.
encryptor.encrypt('The quick brown fox number 3, jumps over the lazy dog')
// '/(26:*Gu`6OpRDx6>R,6x* O2p6oF6w* \b6Rt2p6C(26l7E56gR!'
 
encryptor.decrypt('/(26:*Gu`6OpRDx6>R,6x* O2p6oF6w* \b6Rt2p6C(26l7E56gR!')
// 'The quick brown fox number 3, jumps over the lazy dog'

Run the tests

$ npm test

Contributing?

# Always run the linter & fix code style before pushing 
$ npm run lint

Authors

Owners

License

The MIT License

Readme

Keywords

Package Sidebar

Install

npm i node-fpe-ascii

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

6.72 kB

Total Files

6

Last publish

Collaborators

  • nicholaswmin