@bad-ciphers/caesar
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

@bad-ciphers/caesar

An implementation of the Caesar Cipher.

Usage

import { encode, decode } from '@bad-ciphers/caesar';

const encoded = encode('Hello World!', 7);
// This will encode the string by shifting each letter by 7
const decoded = decode('Olssv Dvysk!', 7);
// decoded === 'Hello World!'

Readme

Keywords

none

Package Sidebar

Install

npm i @bad-ciphers/caesar

Weekly Downloads

3

Version

0.1.1

License

none

Unpacked Size

9.14 kB

Total Files

12

Last publish

Collaborators

  • fa7ad