@chunpu/xor

1.0.0 • Public • Published

@chunpu/xor

NPM version Downloads Dependency Status

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=='

License

License

Readme

Keywords

Package Sidebar

Install

npm i @chunpu/xor

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

3.02 kB

Total Files

6

Last publish

Collaborators

  • chunpux
  • ftft1885