1.0.5 • Published 6 months ago
krypton-grapher v1.0.5
Krypton Grapher
Installation
To install the package, run:
npm install krypton-grapher
Integration
To use the package, import it in your project:
import { Cryptographer } from "krypton-grapher";
const cryptographer = new Cryptographer();
Usage
Encryption:
To encrypt text, use the following method:
cryptographer.encrypt(text, shift);
Decryption:
To decrypt text, use this method:
cryptographer.decrypt(text, lang, shift);
Note: If you don't provide the shift
as the third argument, the method will return an array with all possible variations of the text.
Supported Languages
In parentheses, you can see the abbreviation that should be passed as the lang
parameter.
- English (en)
- Ukrainian (uk)
More languages will be supported in the future.