1.0.1 • Published 2 years ago
simple-ciphers v1.0.1
SimpleCiphers
A convenient library for encrypting strings with simple encryption methods
Installation
$ npm install simple-ciphersConnecting 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.