Skip to content

abhinav-mehta/cipher-solver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#CipherSolver Abhinav Mehta, Akshay Singhal, Pankaj Gupta

#Description This module serves in encrypting and decrypting english text via many cipher algorithms like Substitution, caeserian shift, RSA etc. We are also trying on adding cipher cracking to module by using various machine learning and AI techniques.

#Usage For Substitution(both encode and decode)

import CipherSolver

main::IO()
main = do
  let message = "something written here"
  let key = "zxcvbnmasdfghjklqwertyuiop"
  let cipher = substitutionEncode key message

For frequency analysis of substitution cipher

let cipher = "something written here"
let letterfreq = freqtuple cipher
let wsorted = sortedwords cipher
let digrams = digramslist cipher

For Caeser cipher encoding:

let cipher = caeserEncode key message

decoding:

let message = caeserDecode key cipher

auto decrypt:

let message = solveCaeser bigdata (words cipher)

where bigdata represents dictionary words. you can read that from our dictionary folder.

For Affine cipher encoding:

let cipher = affineEncode a b message

decoding

let message = affineDecode a b cipher

For Atbash cipher encoding:

let cipher = atbash message

decoding:

let message = atbash cipher

For Morse-code encoding:

let cipher = morseEncode message

decoding:

let message = morseDecode cipher

For PlayFair cipher encoding:

let cipher = playFairEncode key message

decoding:

let message = playFairDecode key cipher

For Vigenere cipher encoding:

let cipher = vigenereEncode key message

decoding:

let message = vigenereDecode key cipher

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published