1.0.1 • Published 27 days ago

simple-ciphers v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
27 days ago

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

1.0.1

27 days ago

1.0.0

27 days ago