hex-transposition-cipher
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "hex-transposition-cipher", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "hexadecimal transposition cipher for shuffle and reverse shuffling hex encoded cipher text", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
# hex-transposition-cipher | ||
hexadecimal transposition cipher for shuffle and reverse shuffling hex encoded cipher text for nodejs and the browser. | ||
Adds an extra layer of protection to your already encrypted code's hex output by essentially turning it into nothing but valid hex. | ||
demo: https://angeal185.github.io/hex-transposition-cipher/ | ||
@@ -14,3 +16,3 @@ ### Installation | ||
#### nodejs | ||
ensure jquery is installed. | ||
```sh | ||
@@ -61,6 +63,14 @@ $ const htc = require('hex-transposition-cipher'); | ||
let res = htc.subSync('74657374', key, {decode:false, reverse: false}) | ||
console.log(res) // returns encrypted hex string | ||
let res = htc.subSync('74657374', key, {decode:false, reverse: false}); | ||
console.log(res); // returns encrypted hex string | ||
res = htc.subSync('74657374', key, {decode:true, reverse: false}); | ||
console.log(res); // returns decrypted hex string | ||
res = htc.subSync('74657374', key, {decode:false, reverse: true}); | ||
console.log(res); // returns encrypted hex string and reverses the output of the string | ||
res = htc.subSync('74657374', key, {decode:true, reverse: true}); | ||
console.log(res); // returns decrypted hex string that has been reversed | ||
/** | ||
@@ -75,5 +85,7 @@ * htc.sub(hex, key, config, callback) | ||
htc.sub(res, key, {decode:true, reverse: false}, function(i){ | ||
console.log(i) // returns decrypted hex string | ||
console.log(i); // returns decrypted hex string | ||
}) | ||
... | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15084
89