Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hex-transposition-cipher

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hex-transposition-cipher - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

package.json
{
"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
})
...
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc