hex-transposition-cipher
hexadecimal transposition cipher for shuffle and reverse shuffling hex encoded cipher text for nodejs and the browser.
demo: https://angeal185.github.io/hex-transposition-cipher/
Installation
npm
$ npm install hex-transposition-cipher
nodejs
ensure jquery is installed.
$ const htc = require('hex-transposition-cipher');
browser
<script src="./path-to/lodash.min.js"></script>
<script src="./dist/htc.min.js"></script>
info
{
decode: false,
reverse: false,
}
const key = htc.keyGen();
console.log(key)
htc.keyGen(function(i){
console.log(i)
});
let res = htc.subSync('74657374', key, {decode:false, reverse: false})
console.log(res)
htc.sub(res, key, {decode:true, reverse: false}, function(i){
console.log(i)
})