Vigenère cipher implementation in TypeScript
  • TypeScript 100%
Find a file
2025-10-17 21:15:30 +02:00
.github/workflows fix: ci 2024-04-23 19:59:52 +08:00
src refactor: fix variable name 'results' 2025-10-17 21:15:30 +02:00
test feat: vigenere cipher encryption and decryption 2024-04-23 19:57:46 +08:00
.gitignore Initial commit 2024-04-23 19:26:15 +08:00
bun.lockb Initial commit 2024-04-23 19:26:15 +08:00
package.json chore: release v0.1.1 2024-04-23 19:59:59 +08:00
README.md fix: function name in docs 2025-10-17 21:13:18 +02:00
tsconfig.json Initial commit 2024-04-23 19:26:15 +08:00
vite.config.ts Initial commit 2024-04-23 19:26:15 +08:00

@uniiem/vigenere-cipher

GitHub Actions Workflow Status NPM Downloads NPM Version (with dist tag) npm bundle size GitHub License

Vigenère cipher implementation in TypeScript

Installation

npm install @uniiem/vigenere-cipher

Usage

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~

Support me on Patreon 爱发电