Skip to main content

A versatile cryptography library for various encryption and decryption techniques.

Project description

Cryptix Package Usage

Overview

The Cryptix a powerful python library which provides decryption functions for various ciphers. Below are examples demonstrating how to use the decryption functions for different ciphers included in the package.

Supported Ciphers

  • Vigenère Cipher
  • Affine Cipher
  • Hill Cipher
  • Beaufort Cipher
  • Rail Fence Cipher
  • Playfair Cipher
  • One-Time Pad Cipher
  • XOR Cipher
  • RSA Cipher
  • Caeser Cipher
  • Bacon Cipher
  • AtBash Cipher
  • RO13
  • ROT5
  • Columnar Transposition Cipher

Supported Encodings

  • Binary
  • Hexadecimal
  • Octal
  • ASCII
  • URL Encoding
  • Unicode Point
  • Base64
  • Base32
  • Base58
  • Morse Code

Sample Usage

Caesar Cipher

from Cryptix import Cryptix

ciphertext = "Khoor Zruog"  # Encrypted with a shift of 3
shift = 3
plaintext = Cryptix.decrypt_caesar(ciphertext, shift)
print("Caesar Cipher Decryption:", plaintext)

Conclusion

Simply there is the logic to decrypt all these algorthims, like if you want any cipher to decrypt, follow the trick below:

from Cryptix import Cryptix
ciphertext = "Xhpc yb fggw"  # Example encrypted text
key_matrix = [[6, 24, 1], [13, 16, 10], [20, 17, 15]]
plaintext = Cryptix.decrypt_hill(ciphertext, key_matrix)
print("Hill Cipher Decryption:", plaintext)

Just you want to type decrypt_name, like decrypt_hill_cipher, then either you want to print it or use a variable to store it and then print it. The above example showed us that if you want to print it, first by saving its returing value to variable and then printing it.

Other way to do

from Cryptix import Cryptix
print(decrypt_caeser_cipher("HERE CIPHER TEXT COMES", "HERE COMES THE SWIFT FOR IT"))

Similary you can do it for decoding the mentioned encodings you have to use.

encoded_text = "+++++++......++++++,-------"  # Example encoded text
plaintext = Cryptix.decode_morse_code(encoded_text)
print("Morse Code decoded text:", encoded_text)

Other way to do it

from Cryptix import Cryptix
print("Morse Code decoded text:", encoded_text)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Cryptix-0.1.1.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Cryptix-0.1.1-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file Cryptix-0.1.1.tar.gz.

File metadata

  • Download URL: Cryptix-0.1.1.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for Cryptix-0.1.1.tar.gz
Algorithm Hash digest
SHA256 9b00b0cb22b9b2fc68cd8239a3437c9678b2d7854c7973bbb1baa3fdb80c88cd
MD5 8bbf2b62554d277f1be720a18bba2efa
BLAKE2b-256 394fce1c498cc950c71f57e6cebcf529f6996679c411d6566d0fde4596551762

See more details on using hashes here.

File details

Details for the file Cryptix-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: Cryptix-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for Cryptix-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4b4295d45a0c36f91fcff6066824351834df759a2777ead9f3a81c13ac940177
MD5 1756ced7bdd0146b17228998e99acb88
BLAKE2b-256 fe7f00e93d3ef37639baa194fc84d5caf31039298cb3953e23c6f3ede77d6fea

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page