UNPKG

shift-cipher

Version:

A simple package for encrypting and decrypting strings using Caesar cipher-like technique.

13 lines (12 loc) 305 B
export declare class ShiftCipher { private cipherMap; constructor(); encode(str: string): string; decode(str: string): string; makeCipherMap({ chars, shift }: { chars: string; shift: number; }): void; private get reversedCipherMap(); private rotateChars; }