@chunpu/xor
v1.0.0
Published
XOR Encrypt and Decrypt, Support utf-8
Downloads
6
Readme
@chunpu/xor
XOR Encrypt and Decrypt, Support utf-8
Installation
npm i @chunpu/xor
Usage
const xor = require('@chunpu/xor')
Support Both Browsers and Node.js
Api
xor.encrypt(value, secret)
xor.decrypt(str, secret)
Example
var secret = 'secret'
var value = '1024'
console.log(xor.encrypt(value, secret))
// => 'QlVRRg=='