
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
A module for cryptography built from scratch, offering a robust suite of classes and functions for symmetric and asymmetric encryption, hashing algorithms, key exchange protocols as well as mathematical utility functions.
The cryptosystems
package offers a robust suite of classes and functions for symmetric and asymmetric encryption, hashing algorithms, key exchange protocols as well as mathematical utility functions. Designed for seamless encryption, decryption, and cryptographic operations, this package is lightweight and efficient, relying solely on Python’s built-in libraries: ctypes
, warnings
and hashlib
. With almost all of the cryptographic logic implemented from scratch, cryptosystems
provides a streamlined, dependency-free solution, ensuring consistency and reliability across different environments as well as Python versions.
cryptosystems
v1.0.0 📜generate_keys
functionality.cryptosystems
, covering cryptosystem description, mathematical details, usage examples and more.find_generator
function.hash_functions
submodule.To install the package, simply clone the repository and install the dependencies:
pip install cryptosystems
The general structure for usage is to create an object of the respective cryptosystem, with the key as argument if required. Similar usage for the utility functions as well. See docs for the exact reference example of a specific cryptosystem if required.
from cryptosystems import SomeCryptosystem
cipher = SomeCryptosystem()
ciphertext = cipher.encrypt("Hello World")
print(ciphertext) # Output: 'ciphertext string'
plaintext = cipher.decrypt(ciphertext)
print(plaintext) # Output: 'Hello World'
This project is licensed under the Apache License - see the LICENSE file for details.
bcrypt.h
and gmp.h
, for functions in the functions submoduleFAQs
A module for cryptography built from scratch, offering a robust suite of classes and functions for symmetric and asymmetric encryption, hashing algorithms, key exchange protocols as well as mathematical utility functions.
We found that cryptosystems 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
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.