2.1.0 • Published 6 years ago
hutton v2.1.0
Hutton Cipher
import Hutton from './hutton.js';
let ciphertext = Hutton.encrypt('Hello World!', 'Open', 'Sesame');
console.log(ciphertext); // QIJRXCVLTX
let plaintext = Hutton.decrypt('QIJRXCVLTX', 'Open', 'Sesame');
console.log(plaintext); // HELLOWORLDThe WebAssembly implementation can be accessed this way:
import Hutton from './hutton.js';
let ciphertext = Hutton.Wasm.encrypt('Hello World!', 'Open', 'Sesame');
console.log(ciphertext); // QIJRXCVLTX
let plaintext = Hutton.Wasm.decrypt('QIJRXCVLTX', 'Open', 'Sesame');
console.log(plaintext); // HELLOWORLDOnline Hutton Calculator: Click here