@uniiem/vigenere-cipher
v0.1.2
Published
Vigenère cipher implementation in TypeScript
Maintainers
Readme
@uniiem/vigenere-cipher
Vigenère cipher implementation in TypeScript
Installation
npm install @uniiem/vigenere-cipherUsage
import { encrypt, decrypt } from '@uniiem/vigenere-cipher';
const key = 'OFCPGD';
const plaintext = 'CTFEVER @ VIGENERE CIPHER TEST';
const ciphertext = encrypt(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~
