A Python library for various encryption algorithms including Fernet, Vigenère, Caesar, and Replacement ciphers.
Project description
zockchinCrypto 🔐
A lightweight and easy-to-use Python library for text and file encryption. It supports modern encryption standards like Fernet (AES) and classic algorithms like the Caesar Cipher.
Features
- Text Encryption: Secure your strings using Fernet symmetric encryption.
- File Encryption: Encrypt any file type (images, PDFs, ZIP files, etc.).
- Automatic Key Management: Automatically generates and manages secure keys in
.pemfiles. - Caesar Cipher: Includes the classic Caesar shift cipher for educational purposes.
- Robust: Built on top of the industry-standard
cryptographylibrary.
Installation
Install the library using pip:
pip install zockchinCrypto
#How to use the Vigenere Cipher
import zockchinCrypto
# Encryption using Vigenère (Verna)
Encryption = zockchinCrypto.VigEncryption('egypt is frist', 'key')
print(Encryption) # Output: okwzx sw pvgcx
# Decryption using Vigenère (Verna)
Deciphering = zockchinCrypto.VigDeciphering('okwzx sw pvgcx', 'key')
print(Deciphering) # Output: egypt is frist
#How to use the Replacement Cipher
st = string.ascii_letters + string.digits + string.punctuation
key = list(st)
random.shuffle(key)
print(key)
Replacement = zockchinCrypto.ReplacementEncryption(st , 'zockchin',key)
print(Replacement)
#Add here the previous list you obtained during encryption
Replacement = zockchinCrypto.ReplacementDecryption(st , '8TlKl"I<',['z', '/', 'l', 'A', 'x', 'G', ':', '"', 'I', '=', 'K', '5', 'C', '<', 'T', '`', 'F', '{', 't', 'p', '?', "'", 'O', 'Z', 'W', '8', ',', ';', '}', 'y', 'g', 'D', 'r', 'h', 'a', 'L', '@', 'N', 'H', 's', 'v', 'j', '^', 'i', ']', 'X', '!', 'E', '-', '#', 'e', 'V', 'Q', 'u', '0', 'Y', 'P', 'B', ')', 'n', '>', 'k', '[', '3', 'M', 'c', '(', 'd', 'q', 'J', '%', '6', 'w', '_', 'R', 'U', '|', '9', '1', 'f', 'b', 'o', '4', '\\', '+', '$', '2', '.', 'S', '*', 'm', '7', '~', '&'])
print(Replacement)
#How to use Caesar cipher
a = zockchinCrypto.CaesarEncryption('zockchin',3,'abcdefghijklmnopqrstuvwxyz')
print('caesar ',a)
a = zockchinCrypto.CaesarDecryption('cbdg',3,'abcdefghijklmnopqrstuvwxyz')
print('caesar ',a)
#Method of encrypting and decrypting text using the Ferent code
Encryption = zockchinCrypto.ferentTextEncryption('zockchin')
print(Encryption)
Decryption = zockchinCrypto.ferentTextDecryption('gAAAAABpRzfC7t_hQ26YHtb949YUi5UvwxWT7lelqSwt2gKPeUP5_H-AynkIZW7XGjFej-popoB6AO_erkYOO66SCPkARt7u5Q==')
print(Decryption)
#Method of encrypting and decrypting file using the Ferent code
FileEncryption = zockchinCrypto.ferentFileEncryption('test','rar')
FileDecryption = zockchinCrypto.ferentFileDecryption('encrypted_file','rar')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file zockchincrypto-0.1.2.tar.gz.
File metadata
- Download URL: zockchincrypto-0.1.2.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3dd6dc9b4e336a57a86c1ffbab7c73fd47ca997be3cdd987f6681c220c116e0a
|
|
| MD5 |
657b3f02fb62f4a21a8480c8233ab820
|
|
| BLAKE2b-256 |
319fbef7b060ed26a72dfce6432de091f2bf347cb307036dbc357b660d6c6b33
|
File details
Details for the file zockchincrypto-0.1.2-py3-none-any.whl.
File metadata
- Download URL: zockchincrypto-0.1.2-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b932221523f6d540f433d7ec968bc81cbb9a5be5850afba3d14ebce17e9b452a
|
|
| MD5 |
0ac11f67f1d1ba8d93815e3e1ff80e2f
|
|
| BLAKE2b-256 |
07338af755c6d20cc9b1fdee57b8ab75542b974b1e076db653acf0053dfe07dd
|