aesid
v4.0.3
Published
aes for sid
Downloads
41
Readme
AESID
Install
npm install aesid --save
Usage
import { AesId } from 'aesid';
const sidAes = new AesId([
// mulit versions
{ version: 2, aes: 'old test aes key' },
{ version: 5, aes: 'new test aes key' },
], {
userid: true, // true/false/auto
});
const sid = sidAes.encrypt('encrypt content', 'userid');
const content = sidAes.decrypt(sid, 'userid');
Upgrade
3.x => 4.x
- export
AesId
class - remove
is
func