Miss any of our Open RFC calls?Watch the recordings here! »

hutton

2.1.0 • Public • Published

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); // HELLOWORLD

The 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); // HELLOWORLD

Online Hutton Calculator: Click here

Install

npm i hutton

DownloadsWeekly Downloads

2

Version

2.1.0

License

MIT

Unpacked Size

500 kB

Total Files

9

Last publish

Collaborators

  • avatar