Miss any of our Open RFC calls?Watch the recordings here! »

node-fe1-fpe

0.0.1 • Public • Published

node-fe1-fpe

A dependency-free Node.js implementation of Format Preserving Encryption using the FE1 scheme from the paper "Format-Preserving Encryption" by Bellare, Rogaway, et al.

Ported from java-fpe which was ported from DotFPE which was ported from Botan Library. Version 0.0.1.

See LICENSE.md for the full license.

Installation

npm install --save node-fe1-fpe

Basic usage

const fe1 = require('node-fe1-fpe');
 
// in possible values of 0-10000 encrypt the value of 1.
const encryptedValue = fe1.encrypt(10000, 1, 'my-secret-key', 'my-non-secret-tweak');

Todo

  • Proper tests
  • Documentation
  • Benchmarks
  • Speed optimizations

Copyright

Copyright (c) 2017 Dimitar Nanov.

Install

npm i [email protected]

Version

0.0.1

License

MIT

Last publish

Collaborators

  • avatar
  • avatar