0.1.1 • Published 7 months ago

@bad-ciphers/xor v0.1.1

Weekly downloads
-
License
-
Repository
-
Last release
7 months ago

@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!'
0.1.2

7 months ago

0.1.1

7 months ago

0.1.0

7 months ago