JSPM

@nbisigna/scramble

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q22405F
  • License ISC

A scrambler made using a c++ add on.

Package Exports

  • @nbisigna/scramble

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@nbisigna/scramble) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Scramble

C++ addon for obfuscating ASCII character strings.

Warning!

This is not safe to use to encrypt passwords and sensitive information.

install

npm i @nbisigna/scramble

usage

const { scramble, unScramble } = require('@nbisigna/scramble');

let test = scramble('This is a test string.');

console.log(test); //ExU(s1(saatjiMtsML*\um
console.log(unScramble(test)); //This is a test string.

TODO

  • secret key option
const { scramble, unScramble } = require('@nbisigna/scramble');

let key = 'secret key';
let hide = scramble('This is a test string.', key);
console.log(hide); //njibay7&*B#HBUy8bBHDd
console.log(unScramble(hide, key)); //This is a test string.