A basic library for cryptographic operations like hashing, encryption, and steganography
Project description
CypherKit
A Python library that helps you secure your data - encrypt files, protect passwords, send secret messages, and hide text in images.
Features
- Password Management: Hash passwords securely with PBKDF2, verify passwords, and generate random passwords
- File Encryption: Encrypt/decrypt files using AES-256-GCM with password-based key derivation
- Message Encryption: Encrypt text messages with AES-256-GCM encryption
- Data Hashing: Generate and verify SHA-256 hashes for data integrity
- Steganography: Hide secret messages inside images using LSB technique
Installation
pip install cypherkit
Quick Start
Password Management
from cypherkit import hash_password, verify_password, generate_password
# Hash a password
hashed = hash_password("my_password")
print(verify_password(hashed, "my_password")) # True
# Generate random password
password = generate_password(16)
print(password)
File Encryption
from cypherkit import encrypt_file, decrypt_file
# Encrypt and decrypt files
encrypt_file('document.txt', 'password123')
decrypt_file('document.txt.enc', 'password123')
Message Encryption
from cypherkit import encrypt_message, decrypt_message
import os
key = os.urandom(32) # 256-bit key
encrypted = encrypt_message("Secret message", key)
decrypted = decrypt_message(encrypted, key)
print(decrypted)
Hide Messages in Images
from cypherkit import encode_message, decode_message
# Hide message in image
encode_message('photo.png', 'Hidden message', 'output.png')
# Extract hidden message
message = decode_message('output.png')
print(message)
Requirements
- Python 3.7+
- pycryptodome
- Pillow
Security
- PBKDF2 password hashing with 100,000 iterations
- AES-256-GCM encryption for files and messages
- Cryptographically secure random generation
- Automatic salt generation for password protection
License
MIT License
Links
- GitHub: https://github.com/FahimDidnt/CypherKit
- Documentation: https://github.com/FahimDidnt/CypherKit#readme
- Issues: https://github.com/FahimDidnt/CypherKit/issues
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
cypherkit-1.0.1.tar.gz
(3.7 kB
view details)
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 cypherkit-1.0.1.tar.gz.
File metadata
- Download URL: cypherkit-1.0.1.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e95d51531c2d54d23007bdf52e8adc2d89f049f830a687b8e5c8c24dcfbe1309
|
|
| MD5 |
0158dedab0ee66121f172200fb40daaf
|
|
| BLAKE2b-256 |
c2b4bc91053f61ad168903fe19dff3c1ca794fc5d6f97c35528db843c65bd0b7
|
File details
Details for the file cypherkit-1.0.1-py3-none-any.whl.
File metadata
- Download URL: cypherkit-1.0.1-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d45b30ea9001ff4deda9f6f876134a3421aa91b76760ccd46828b04426942e32
|
|
| MD5 |
e5f106bca90e3c400bef2bbd887be25c
|
|
| BLAKE2b-256 |
990bd44c1e47776269404bdfe823b0510cb839236ca29b85517b91b91875c48c
|