@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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    4
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    4

Package Sidebar

Install

npm i @chunpu/xor

Weekly Downloads

4

Version

1.0.0

License

ISC

Unpacked Size

3.02 kB

Total Files

6

Last publish

Collaborators

  • chunpux
  • ftft1885