
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.
NodeJS encryption made easy.
##Installation
The source is available for download from GitHub. Alternatively, you can install using Node Package Manager (npm):
npm install encrypter
##Usage
###initialize
var encrypter = new (require('encrypter'))(encryptionKey[, cipherAlgorithm[, messageDigestAlgorithm]])
where
encryptionKey
- secret string key used for encryption
cipherAlgorithm
- cipher Algorithm (default: aes-256-ctr
).
Cipher algorithm is dependent on the available algorithms supported by the version of OpenSSL on the node platform. examples are 'aes192', etc. On recent releases, openssl list-cipher-algorithms will display the available cipher algorithms.
messageDigestAlgorithm
- message digest algorithm(default: sha1
).
Message digest algorithm is dependent on the available algorithms supported by the version of OpenSSL on the node platform. Examples are 'sha1', 'md5', 'sha256', 'sha512', etc. On recent releases, openssl list-message-digest-algorithms will display the available digest algorithms.
###encrypt and decrypt
With default algorithms:
var encrypter = new (require('encrypter'))("myEncryptionSecret");
var encrypted = encrypter.encrypt('Hello from quorra!');
var decrypted = encrypter.decrypt(encrypted); // Hello from quorra!
With custom algorithms:
var encrypter = new (require('encrypter'))("myEncryptionSecret", 'aes-256-ctc', 'sha256');
var encrypted = encrypter.encrypt('Hello from quorra!');
var decrypted = encrypter.decrypt(encrypted); // Hello from quorra!
##License
The Encrypter is open-sourced software licensed under the MIT license.
FAQs
A Node.js encryption module
The npm package encrypter receives a total of 40 weekly downloads. As such, encrypter popularity was classified as not popular.
We found that encrypter demonstrated a not healthy version release cadence and project activity because the last version was released 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.