node-fpe-ascii
v1.0.0
Published
Format-preserving encryption on ASCII characters
Downloads
14
Readme
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
- Nicholas Kyriakides, @nicholaswmin
Owners
License
The MIT License