multi-crypto

1.7.0 • Public • Published

Multi Crypto

Multi Crypto is a node lib to cryptography text, encrypt and decrypt, but, how i can use it? Simple:

npm install multi-crypto

and

const multiCrypto = require('multi-crypto')
 
//for example, enconding a text to binary
const MyText = multiCrypto.encryptBinary('This is my text')
 
//and Decrypt binary
const MyBinary = multiCrypto.DecryptBinary(
1010100 1101000 1101001 
1110011 100000 1101001 
1110011 100000 1101101 
1111001 100000 1110100 
1100101 1111000 1110100
)
 

Ciphers List

Binary

multiCrypto.encryptBinary(text)
 
multiCrypto.DecryptBinary(binary)

Morse

multiCrypto.encryptMorse(text)
 
multiCrypto.DecryptMorse(morse)

ceaser Cipher

multiCrypto.encryptCeaser(text)
 
multiCrypto.bruteDecryptCeaser(text) // for show all possibilities

atBash

multiCrypto.encryptAtBash(text)
 
multiCrypto.decryptAtBash(text)

Affine Cipher

multiCrypto.encryptAffine(text, a, b) // a and b are numbers, like a = 5 and b = 7
 
multiCrypto.decryptAffine(text, a, b) // a and b are numbers, like a = 5 and b = 7

Auto Key

multiCrypto.encryptAutoKey(text, key) // key must be a string
 
multiCrypto.decryptAutoKet(text, key) // key must be a string

Baconian Cipher

multiCrypto.encryptBaconian(text, alphabet) // the default alphabet is ABCDEFGHIKLMNOPQRSTUWXYZ
 
multiCrypto.decryptBaconian(text, alphabet) // the default alphabet is ABCDEFGHIKLMNOPQRSTUWXYZ

Base 64

multiCrypto.encryptBase64(text)
 
multiCrypto.decryptBase64(base64Text)

Viginere Cipher

multiCrypto.encryptViginere(text, key) // key is like "abc"
 
multiCrypto.decryptViginere(text, key) // key is like "abc"

Rail Fance

multiCrypto.encryptRailFence(text, key) // key is a number, like 3
 
multiCrypto.decryptRailFence(text, key) // key is a number, like 3

Simple Substitution

multiCrypto.encryptSimpleSubstitution(text, alphabet)
 
multiCrypto.decryptSimpleSubstitution(text, alphabet)
 
// alphabet is like "dynoutmperlqbcwzvsagjfxikh"

Columnar Transposition

multiCrypto.encryptColumnarTransposition(text, key, padChar='x') // padChar is a letter, like "x"
 
multiCrypto.decryptColumnarTransposition(text, key) // you dont have to put padChar

Porta Cipher

multiCrypto.encryptPorta(text, key) // key is a word
 
multiCrypto.decryptPorta(text, key) // key is a word

Hill Cipher

multiCrypto.encryptHill(text, key) // key should be 4 numbers, like "5 17 4 15" in a string
 
multiCrypto.decryptHill(text, key) // key should be 4 numbers, like "5 17 4 15" in a string

Four Square

multiCrypto.encryptFourSquare(text, key1, key2)
 
multiCrypto.decryptFourSquare(text, key1, key2)
 
// the keys should be alphabets, like "zgptfoihmuwdrcnykeqaxvsbl" and "mfnbdcrhsaxyogvituewlqzkp"

Play Fair

multiCrypto.encryptPlayfair(text, keysquare)
 
multiCrypto.decryptPlayfair(text, keysquare)
 
// keysquare must be a alphabet, like:
"monarchybdefgiklpqstuvwxz"

ADFGVX Cipher

multiCrypto.encryptAdfgvx(text, keysquare, keyword)
 
multiCrypto.decryptAdfgvx(text, keysquare, keyword)
 
// keysquare should have all letters and numbers (0 - 9)
// keyword is any word, like "BRAZIL"

ADFGX Cipher

multiCrypto.encryptAdfgx(text, keysquare, keyword)
 
multiCrypto.decryptAdfgx(text, keysquare, keyword)
 
// keysquare should have all letters execept "j"
// the key word is any word, like "BRAZIL"

Bifid Cipher

multiCrypto.encryptBifid(text, keysquare, peorid)
 
multiCrypto.encryptBifid(text, keysquare, peorid)
 
// keysquare should be all letters exepect "j", it is merged with a letter i
 
// peorid should be a number, like 5

NPM Page: https://www.npmjs.com/package/multi-crypto

GitHub: https://github.com/edersonferreira/multi-crypto

Created with love by Ederson Ferreira (Brazil) 💚

Package Sidebar

Install

npm i multi-crypto

Weekly Downloads

0

Version

1.7.0

License

ISC

Unpacked Size

46.9 kB

Total Files

23

Last publish

Collaborators

  • edersonferreira