ls-v1-func

1.0.0 • Public • Published

Ls-v1-func

Ls-v1-func is a Node.js module that provides functions for encryption and decryption using the Enigma machine algorithm.

Installation

Install the module via npm: npm install ls-v1-func

Usage

const EnigmaMachine = require('enigma-crypt');

// Example usage
const enigma = new EnigmaMachine(['EKMFLGDQVZNTOWYHXUSPAIBRCJ', 'AJDKSIRUXBLHWTMCQGZNPYFVOE', 'BDFHJLCPRTXVZNYEIWGAKMUSQO']);
enigma.setRotorPositions([0, 0, 0]);

const encryptedMessage = enigma.encrypt('HELLO');
console.log(encryptedMessage); // Output: 'ILBMO'

const decryptedMessage = enigma.decrypt(encryptedMessage);
console.log(decryptedMessage); // Output: 'HELLO'

Readme

Keywords

none

Package Sidebar

Install

npm i ls-v1-func

Weekly Downloads

2

Version

1.0.0

License

ISC

Unpacked Size

3.3 kB

Total Files

3

Last publish

Collaborators

  • lisacollins0164974