Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
This Python package provides tools for encrypting and decrypting files with Daniel Bernstein's ChaCha20 stream cipher, using a key derived from a pass phrase. Encrypted files include a Poly1305 authentication tag to detect tampering with an encrypted file.
This is still a work in progress, published here for testing only. Do not use it for anything important. The file formats and encryption algorithms are subject to change, which could leave you with encrypted files that you cannot decrypt.
Install this package with pip:
python3 -m pip install --pre chafe
The pypi package name is "chafe". The python module installed with this command is named "chacha". The --pre option is needed because the current version of this package is a pre-release.
The package provides two entry points named encrypt and decrypt. That means that if this module is in your Python path then the module can be used as follows:
To encrypt a file named myfile:
% python3 -m chacha.encrypt myfile
You will be prompted for a password, and an encrypted file named myfile.cha will be created. The password will be visible until the encryption is finished, then erased. (So write it down first!)
To decrypt myfile.cha:
% python3 -m chacha.decrypt myfile.cha
You will be prompted for the password, and a decrypted file named myfile will be created. The password will be visible until the decryption is finished, then erased.
If you install this module with pip and have configured you path to make pip-installed scripts available, then the commands will simply be:
% chacha-encrypt myfile
and
% chacha-decrypt myfile.cha
FAQs
Encrypts and decrypts files using a pass phrase.
We found that chafe 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’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.