simple-ciphers

1.0.1 • Public • Published

SimpleCiphers

A convenient library for encrypting strings with simple encryption methods

Installation

$ npm install simple-ciphers

Connecting the library

const ciphers = require('simple-ciphers');

let someText = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.';

Using (encryption)

binText = ciphers.bin_encrypt(someText);

caesarText = ciphers.caesar_encrypt(someText, 7);

morseText = ciphers.morse_encrypt(someText)

Using (decryption)

textBin = ciphers.bin_decrypt(binText);

textCaesar = ciphers.caesar_decrypt(caesarText, 7);

textMorse = ciphers.morse_decrypt(morseText)

Of course, you can use several ciphers sequentially. For example, first encrypt the text using the Caesar cipher, then turn it into a binary representation, and only then into Morse code, such a cipher will be more difficult to crack.

People

Author is VadoSVad

License

MIT

/simple-ciphers/

    Package Sidebar

    Install

    npm i simple-ciphers

    Weekly Downloads

    1

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    3.6 kB

    Total Files

    3

    Last publish

    Collaborators

    • vadosvad