1.0.0 • Published 4 years ago
node-fpe-pattern v1.0.0
node-fpe-pattern
Format-Preserving symmetric encryption in Node.js. Wraps node-fpe, adding support to preserve the pattern of the text.
Usage
const FPEncryptor = require('node-fpe-pattern');
const encryptor = new FPEncryptor({password: "secret",domain: "O", "N", "E", "I", "S", "A", "L"});
encryptor.encrypt("ONE+IS+ALL,ALL+IS+ONE", ["", "", ",", "+"]);
encryptor.decrypt('OLA+SE+NII,NII+SE+OLA', ["", "", ",", "+"]);
1.0.0
4 years ago