Skip to content

Srm-Akla/Cryptography

Repository files navigation

Cryptograpy

Folder contains some Ciphers, scripts that are related to Cryptography

Tables of Contents

Installation

Enter this command in your terminal:

Git clone https://github.com/Srm-Akla/Cryptography/

Substitution Ciphers

Caesar Cipher:

Simplest and popular cipher. Each letter of text is shifted n no of positions. Learn about Caesar Cipher

Usage:
Python3 Caeser.py -e/-d "SOME TEXT" -k 13

pwsh Caeser.ps1 -encrypt/-decrypt -text "SOME TEXT" -key 13

Atbash Cipher

Originally used to encrypt Hebrew. First and Last letter, Second and second to last letter and etc. are swapped. Learn more Atbash

Usage:
Python3 Atbash.py -e/-d "SOME TEXT" -k 13

Transposition Ciphers

Scytale Cipher

A scytale is a tool to perform cipher. Spartans said to have used this cipher to communicate. Learn about Scytale Cipher

Usage:
pwsh Scytale.ps1 -encrypt/-decrypt -text "SOME TEXT" -key 13

Poly-Alphabetic Ciphers

Vigenere Cipher

Can only Encrypt UpperCase Letter, trying to implement lowercase. Vigenere is method of encrypting alphabetic text by using a series of interwoven Caesar ciphers. Learn about Vigenere

Usage:
Python3 Vigenere.py -e "SOME TEXT" -k "SOME KEY"

Modern Ciphers

XOR Cipher

Can only Encrypt UpperCase Letter, trying to implement lowercase. XOR Encryption is an encryption method used to encrypt data and is hard to crack by brute-force method. Learn about XOR

Usage:

Python3 XOR.py -t "SOME TEXT" -k "SOME KEY"