1.0.0 • Published 4 years ago

cbe-js v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

Character Code Based Encryption (CBE)

This is something I made that very basically encrypts and decrypts strings with a key WARNING: THIS ENCRYPTION IS IN NO WAY SECURE

const CBE = require('cbe-js');
const CBE = require('cbe-js');

const plaintext = 'This is the text I will encrypt!'
const key = 'Anything here will work.'

const ciphertext = CBE.encrypt(plaintext, key)
console.log(ciphertext)
// Encrypted string will print out.
console.log(CBE.decrypt(ciphertext, key))
// This is the text I will encrypt!