@uniiem/vigenere-cipher
v0.1.1
Published
Vigenère cipher implementation in TypeScript
Downloads
8
Maintainers
Readme
@uniiem/vigenere-cipher
Vigenère cipher implementation in TypeScript
Installation
npm install @uniiem/vigenere-cipher
Usage
import { enctypt, decrypt } from '@uniiem/vigenere-cipher';
const key = 'OFCPGD';
const plaintext = 'CTFEVER @ VIGENERE CIPHER TEST';
const ciphertext = enctypt(plaintext, key);
console.log(ciphertext); // 'QYHTBHF @ AKVKQSWG ROSVJT IKVH'
const decrypted = decrypt(ciphertext, key);
console.log(decrypted); // 'CTFEVER @ VIGENERE CIPHER TEST'
Sponsor
Buy me a coffee~