Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
A package for encrypting and decrypting Python files using base64 or emoji obfuscation.
cryptionpy
is a Python package designed for easy encryption and decryption of Python files using either base64 or emoji obfuscation methods. With cryptionpy
, you can secure your source code or obfuscate it for various purposes.
You can install the package using pip:
pip install cryptionpy
cryptionpy <input_file> <output_file> <method>
cryptionpy <input_file> <output_file> base64 --decrypt
<input_file>
: The Python file you want to encrypt or decrypt.<output_file>
: The file where the encrypted or decrypted code will be saved.<method>
: The encryption method, either base64
or emoji
.--decrypt
: Optional flag to decrypt the file instead of encrypting.from cryptionpy import encrypt_file
if encrypt_file('input_file.py', 'output_file.py', 'base64'):
print("Encrypted")
else:
print("Not Encrypted")
from cryptionpy import decrypt_file
if decrypt_file('input_file.py', 'output_file.py', 'base64'):
print("Decrypted")
else:
print("Not Decrypted")
For Base64 encryption:
cryptionpy input_file.py output_file.py base64
For Base64 decryption:
cryptionpy input_file.py output_file.py base64 --decrypt
For Emoji encryption:
cryptionpy input_file.py output_file.py emoji
from cryptionpy import encrypt_file
if encrypt_file('input_file.py', 'output_file.py', 'base64'):
print("Encrypted")
else:
print("Not Encrypted")
from cryptionpy import decrypt_file
if decrypt_file('input_file.py', 'output_file.py', 'base64'):
print("Decrypted")
else:
print("Not Decrypted")
Thank you for using cryptionpy
. Your feedback and contributions are greatly appreciated! If you encounter any issues or have suggestions for improvements, please let us know.
FAQs
A package for encrypting and decrypting Python files using base64 or emoji obfuscation.
We found that cryptionpy 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 uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.