Skip to content

A python package to seamlessly encrypt and decrypt data into many rich cryptography algorithms

License

Notifications You must be signed in to change notification settings

Mohammed-Shoaib01/KRYPTOR

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KRYPTOR

GitHub issues GitHub forks GitHub stars GitHub license Twitter Maintainability GitHub release (latest by date)

CAESAR CIPHER


from kryptor.caesar_cipher import CaesarCipher

obj = CaesarCipher() # Default shift is 3
obj.encrypt("HELLO WORLD") # returns KHOOR ZRUOG
obj.decrypt("KHOOR ZRUOG") # returns HELLO WORLD
obj.encrypt("HELLO WORLD", 5) # returns MJQQT BTWQI
obj.decrypt("MJQQT BTWQI", 5) # returns HELLO WORLD

PLAYFAIR CIPHER


from kryptor.playfair_cipher import PlayfairCipher

obj = PlayfairCipher()
print(obj.encrypt("iamdencoder", "key")) # returns nklfalhildsw
print(obj.decrypt("nklfalhildsw", "key")) # returns iamdencoder

MORSE CODE


from kryptor.morse import Morse

obj = Morse()
print(obj.encrypt('I am Dencoder')) # returns ...  .- --  -.. . -. -.-. --- -.. . .-.
print(obj.decrypt('..  .- --  -.. . -. -.-. --- -.. . .-.')) # returns I AM DENCODER

HILL CIPHER


from kryptor.hill_cipher import HillCipher

obj = HillCipher()
print(obj.encrypt('iamdencoder', [[3, 3], [2, 5]])) # returns yqtnzvwwvawd
print(obj.decrypt('yqtnzvwwvawd', [[3, 3], [2, 5]])) # returns iamdencoderz

STEGANOGRAPHY


  1. Hiding data behind image
from kryptor.img_steganography import ImgSteganography

obj = ImgSteganography()
obj.encrypt('I am Dencoder', 'image.png', 'output.png') # returns output.png
obj.decrypt('output.png') # returns I am Dencoder
  1. Hiding data behind audio
from kryptor.audio_steganography import AudioSteganography

obj = AudioSteganography()
obj.encrypt('I am Dencoder', 'audio.wav', 'output.wav') # returns output.wav
obj.decrypt('output.wav') # returns I am Dencoder

VIGENERE CIPHER


from kryptor.vigenere_cipher import VigenereCipher

obj = VigenereCipher()
print(obj.encrypt('I am Dencoder', 'key')) # returns s ek nilmsbov
print(obj.decrypt('s ek nilmsbov', 'key')) # returns i am dencoder

RAIL FENCE CIPHER


from kryptor.rail_fence import RailFence

obj = RailFence()
print(obj.encrypt('I am Dencoder', 3)) # returns iedadnoemcr
print(obj.decrypt('iedadnoemcr', 3)) # returns iamdencoder

VERNAAM CIPHER


from kryptor.vernam_cipher import VernamCipher

obj = VernamCipher()
print(obj.encrypt("I am Dencoder", "Python Coder")) # returns xyfksaecgii
print(obj.decrypt("xyfksaecgii", "Python Coder")) # returns iamdencoder

About

A python package to seamlessly encrypt and decrypt data into many rich cryptography algorithms

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%