1.0.3 • Published 6 months ago

@ilihub/cryptography v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

@ilihub/cryptography

A collection of useful TypeScript functions and utilities for cryptography.

NPM Version NPM CodeFactor Socket Badge

Installation

# if you're using pnpm
pnpm add @ilihub/cryptography

# or, if you're using npm
npm install @ilihub/cryptography

# or, if you're using yarn
yarn add @ilihub/cryptography

Usage

import { CaesarCipher } from "@ilihub/cryptography";

const caesarCipher = new CaesarCipher();

const encrypted = caesarCipher.encrypt("Hello World", 3);
console.log(encrypted); // Khoor Zruog

const decrypted = caesarCipher.decrypt(encrypted, 3);
console.log(decrypted); // Hello World

const alldecrypted = caesarCipher.decryptAll(encrypted);
console.log(alldecrypted); // [ 'Hello World', 'Gdkkn Vnqkc', ... ]

Available Functions and Classes


Sponsors & Backers

Support the development of new open-source projects from ilihub through crowdfunding.

The core of ilihub is our crowd-funded open-source projects, licensed under the permissive MIT license. Sponsorship increases the rate of bug fixes, documentation improvements, and feature development.

Sponsors


1.0.3

6 months ago

1.0.2

7 months ago

1.0.1

7 months ago

1.0.0

8 months ago