Skip to main content

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

VERNAM 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

BLOWFISH CIPHER


from kryptor.blowfish_cipher import BlowfishCipher

obj = BlowfishCipher()
print(obj.encrypt(1684)) # returns 8301200985422371632
print(obj.decrypt(8301200985422371632)) # returns 1684

POLYBIUS CIPHER


from kryptor.polybius_cipher import PolybiusCipher

obj = PolybiusCipher()
print(obj.encrypt("I am Dencoder")) # returns 24 1132 1415331334141542
print(obj.decrypt("24 1132 1415331334141542")) # returns i am dencoder

Metadata

Release files for kryptor 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kryptor 0.5.0
File Size Uploaded Provenance Actions
kryptor-0.5.0.tar.gz 54.5 kB Without provenance Details for kryptor-0.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for kryptor 0.5.0
File Interpreter ABI Platform Actions
kryptor-0.5.0-py3-none-any.whl Python 3 none any Details for kryptor-0.5.0-py3-none-any.whl

Total release size: 98.7 kB

Release files / kryptor-0.5.0.tar.gz

Download URL kryptor-0.5.0.tar.gz
Size 54.5 kB
Tags Source
SHA-256 checksum
How to use checksums
4d4d58114739102ca6e85dbbd781ee3f3d54f3c6fe51adbf9a9170eb497e2a36
BLAKE2b-256 checksum
How to use checksums
b6f5833af83ddd584360d72e20f2454864ec7775f10b17a3fe2121db9431e2a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.6

Release files / kryptor-0.5.0-py3-none-any.whl

Download URL kryptor-0.5.0-py3-none-any.whl
Size 44.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4f61c089469a7e690ec22be14e503d4bc444b719dd6641da130a7948f8e0aa58
BLAKE2b-256 checksum
How to use checksums
0aba2082ad57ae6993ebc004bd4ccf05fa06191f1c43a39d3292bab1da00a40f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.6

Security for kryptor 0.5.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page