0.1.1 • Published 1 year ago

@uniiem/vigenere-cipher v0.1.1

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

@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 { 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~

Support me on Patreon 爱发电