@saipos/saipos-number-cipher
v1.0.0
Published
Simple lib to crypt/decrypt numbers.
Downloads
373
Readme
SaiposNumberCipher
JS lib to encrypt / decrypt numbers based on a provided dictionary
Encrypt number
const cipher = new saiposNumberCipher('abcdefghij')
cipher.encrypt(10)// returns ba
Decrypt encrypted number
const cipher = new saiposNumberCipher('abcdefghij')
cipher.decrypt('ba')// returns 10