@bad-ciphers/xor
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

@bad-ciphers/xor

A simple XOR cipher.

Usage

import { encode, decode } from '@bad-ciphers/xor';

const encoded = encode('Hello World!', 0xffff);
// 0xffff is the key used to XOR each character of the string
const decoded = decode(encoded, 0xffff);
// decoded === 'Hello World!'

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.2
    0
    • next
  • 0.1.1
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.2
    0
  • 0.1.1
    0
  • 0.1.0
    0

Package Sidebar

Install

npm i @bad-ciphers/xor

Weekly Downloads

0

Version

0.1.1

License

none

Unpacked Size

6.46 kB

Total Files

12

Last publish

Collaborators

  • fa7ad