// step1: constructor(aesKey, coprId, token)
let aes = new Aes('1234567890123456789012345678901234567890123', 'dinge0e69ed313daa460', '123456');
// step2: encode(encodeString, timestamp, nonceString);
let encoded = aes.encode('success', 1500957302881, 'KOHjp9ss');
console.log(encoded);
// step3: decode(decodeString, timestamp, nonceString, decodeStringSignature)
let parsed = aes.decode(encoded.encrypt, encoded.timeStamp, encoded.nonce, encoded.msg_signature);
console.log(parsed)
-
Notifications
You must be signed in to change notification settings - Fork 1
cathayjs/nodejs-dd-aes
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|