xor-stream-cipher
A simple xor
stream cipher. Uses seed-bytes
for the key stream.
Get it!
npm install --save xor-stream-cipher
Usage
var XOR =var thru =var plain = 'the money is in the attic'var shared = '419'var a =var b ={console}aaba
API
XOR(init[, algo])
Create a new XOR
stream. init
is the seed for a random byte generator used as key stream. algo
indicates the algorithm to use for the internal random number generator, defaults to 'alea'
. Check out seedrandom
for a list of supported algorithms.