key-scramble

1.0.1 • Public • Published

Key Scramble

Scramble keys, secrets and tokens.

In case you want to document something which contains e.g. a client id and client secret, you can blur a screenshot or just 'key-scramble' and replace it. In this case the structure of the key is available and the user of your document will be happy.

Example

let keyScramble = require('./key-scramble.js');
console.log("secretKey123456", keyScramble("secretKey123456"));
console.log("userId_20181031", keyScramble("userId_20181031", true));

Command Line

./bin/key-scramble key [--resetNumber]

With the resetNumber parameter all numbers will be changed to '9' and other characters aren't touched.

In case your key contains one ore more ! characters, bash will show an error message event not found. Turn off history with following command:

set +H

/key-scramble/

    Package Sidebar

    Install

    npm i key-scramble

    Weekly Downloads

    1

    Version

    1.0.1

    License

    Apache-2.0

    Unpacked Size

    2.46 kB

    Total Files

    5

    Last publish

    Collaborators

    • choas