secure ciphers is a collection of encryption algorithms implemented in JavaScript. It includes the following algorithms:
*Caesar cipher *Vigenère cipher *Diffie-Hellman key exchange *RSA encryption
You can install secure ciphers using npm:
npm install secure-ciphers
Here's an example of how to use the Caesar cipher:
const { encryptCaesar, decryptCaesar } = require('secure-ciphers/caesar');
const message = 'Hello, world!';
const key = 3;
const encrypted = encryptCaesar(message, key);
console.log(encrypted); // 'Khoor, zruog!'
const decrypted = decryptCaesar(encrypted, key);
console.log(decrypted); // 'Hello, world!'
You can use the other encryption algorithms in the same way. See the documentation for each algorithm for more information on how to use it.
If you find a bug or have a feature request, please open an issue on the GitHub repository. Pull requests are welcome!
secure ciphers is released under the MIT License.
Eve-SatOrU
https://github.com/Eve-SatOrU/secure-ciphers https://www.npmjs.com/package/secure-ciphers