Skip to main content

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

Metadata

Release files for cypherkit 1.0.1

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

Source distribution (sdist)

Source distribution for cypherkit 1.0.1
File Size Uploaded Provenance Actions
cypherkit-1.0.1.tar.gz 3.7 kB Without provenance Details for cypherkit-1.0.1.tar.gz

Built distribution (wheel)

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

Total release size: 8.7 kB

Release files / cypherkit-1.0.1.tar.gz

Download URL cypherkit-1.0.1.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
e95d51531c2d54d23007bdf52e8adc2d89f049f830a687b8e5c8c24dcfbe1309
BLAKE2b-256 checksum
How to use checksums
c2b4bc91053f61ad168903fe19dff3c1ca794fc5d6f97c35528db843c65bd0b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Release files / cypherkit-1.0.1-py3-none-any.whl

Download URL cypherkit-1.0.1-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d45b30ea9001ff4deda9f6f876134a3421aa91b76760ccd46828b04426942e32
BLAKE2b-256 checksum
How to use checksums
990bd44c1e47776269404bdfe823b0510cb839236ca29b85517b91b91875c48c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Security for cypherkit 1.0.1

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.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files No provenance

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