1.0.0 • Published 6 years ago

node-fpe-ascii v1.0.0

Weekly downloads
5
License
MIT
Repository
github
Last release
6 years ago

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

1.0.0

6 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago