
Research
PyPI Package Disguised as Instagram Growth Tool Harvests User Credentials
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
Cryptography Suite is an advanced cryptographic toolkit for Python, meticulously engineered for applications demanding robust security and seamless integration. It offers a comprehensive set of cryptographic primitives and protocols, empowering developers and organizations to implement state-of-the-art encryption, hashing, key management, digital signatures, and more.
Install the latest stable release from PyPI:
pip install cryptography-suite
Note: Requires Python 3.8 or higher.
Clone the repository and install manually:
git clone https://github.com/Psychevus/cryptography-suite.git
cd cryptography-suite
pip install .
Encrypt and decrypt messages using AES-GCM with password-derived keys.
from cryptography_suite.encryption import aes_encrypt, aes_decrypt
message = "Highly Confidential Information"
password = "ultra_secure_password"
# Encrypt the message
encrypted_message = aes_encrypt(message, password)
print(f"Encrypted: {encrypted_message}")
# Decrypt the message
decrypted_message = aes_decrypt(encrypted_message, password)
print(f"Decrypted: {decrypted_message}")
Generate RSA key pairs and perform encryption/decryption.
from cryptography_suite.asymmetric import generate_rsa_keypair, rsa_encrypt, rsa_decrypt
# Generate RSA key pair
private_key, public_key = generate_rsa_keypair()
message = b"Secure Data Transfer"
# Encrypt the message
encrypted_message = rsa_encrypt(message, public_key)
print(f"Encrypted: {encrypted_message}")
# Decrypt the message
decrypted_message = rsa_decrypt(encrypted_message, private_key)
print(f"Decrypted: {decrypted_message}")
Sign and verify messages using Ed25519.
from cryptography_suite.signatures import generate_ed25519_keypair, sign_message, verify_signature
# Generate key pair
private_key, public_key = generate_ed25519_keypair()
message = b"Authenticate this message"
# Sign the message
signature = sign_message(message, private_key)
# Verify the signature
is_valid = verify_signature(message, signature, public_key)
print(f"Signature valid: {is_valid}")
Split and reconstruct secrets using Shamir's Secret Sharing.
from cryptography_suite.secret_sharing import create_shares, reconstruct_secret
secret = 1234567890
threshold = 3
num_shares = 5
# Create shares
shares = create_shares(secret, threshold, num_shares)
# Reconstruct the secret
selected_shares = shares[:threshold]
recovered_secret = reconstruct_secret(selected_shares)
print(f"Recovered secret: {recovered_secret}")
Ensure the integrity of the suite by running comprehensive tests:
coverage run -m unittest discover
coverage report -m
Our test suite achieves 98% code coverage, guaranteeing reliability and robustness.
cryptography-suite/
โโโ cryptography_suite/
โ โโโ __init__.py
โ โโโ asymmetric.py
โ โโโ encryption.py
โ โโโ hashing.py
โ โโโ key_management.py
โ โโโ otp.py
โ โโโ pake.py
โ โโโ secret_sharing.py
โ โโโ signatures.py
โ โโโ utils.py
โโโ tests/
โ โโโ test_asymmetric.py
โ โโโ test_encryption.py
โ โโโ test_hashing.py
โ โโโ test_key_management.py
โ โโโ test_otp.py
โ โโโ test_pake.py
โ โโโ test_secret_sharing.py
โ โโโ test_signatures.py
โ โโโ test_utils.py
โโโ README.md
โโโ setup.py
โโโ LICENSE
โโโ .github/
โโโ workflows/
โโโ python-app.yml
This project is licensed under the MIT License - see the LICENSE file for details.
We welcome contributions from the community. To contribute:
feature/new-algorithm
).main
branch of the original repository.Please ensure that your contributions adhere to the project's coding standards and include relevant tests.
For support or inquiries:
Special thanks to all contributors and users who have helped improve this project through feedback and collaboration.
Empower your applications with secure and reliable cryptographic functions using Cryptography Suite.
FAQs
A comprehensive and secure cryptographic toolkit.
We found that cryptography-suite demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.