New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

text-cryptography

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

text-cryptography

Encrypt and Decrypt text using classical ciphers.

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

Text Cryptography

Encrypt and Decrypt text using classical ciphers.

Install

npm

npm i text-cryptography

yarn

yarn add text-cryptography

Table of Contents

  • Quick Start
  • List of Current Ciphers
  • Docs
  • Examples

Quick Start

Quick example using Affine cipher

  • Affine takes two keys(a and b) -- a:- (0-5)odd number only --b:- Between 0-25 --maintainCase(optional boolean): Default true
const crypto = require("text-cryptography");

let affine =  new crypto.Affine(3,  5);

let en = affine.encrypt("Hold the Door 12!!!");
let de = affine.decrypt(en)

console.log(en)
console.log(de)

Encryption text:- Avmo kar Ovve 12!!! Decryption text:- Hold the Door 12!!!

Current Ciphers

Total Ciphers: 17

  • A1Z26
  • Affine
  • Atbase
  • Baconian
  • Caesar
  • GoldBug
  • Homophonic
  • Latin Alphabet
  • Mixed Alphabet
  • Polybius Square
  • Prime Numbers
  • Rail Fence
  • Reverse
  • Rot 5
  • Rot 13
  • Rot 18
  • Rot 47
  • Vigenere

Docs

Examples

Keywords

Encrypt

FAQs

Package last updated on 27 Jun 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts