
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
long-encrypt
Advanced tools
适用 jsencrypt、node-jsencrypt、wxmp-rsa 等包含 decrypt、encrypt 方法的加密库
npm i long-encrypt
npm run test
// nodejs
const {
encryptData,
decryptData
} = require('long-encrypt');
或者
// web
import {
encryptData,
decryptData
} from 'long-encrypt';
const JSEncrypt = require('jsencrypt');
或者
const JSEncrypt = require('node-jsencrypt');
const encrypt = new JSEncrypt(); // 创建加密对象实例
const decrypt = new JSEncrypt(); // 创建解密对象实例
encrypt.setPublicKey(pubKey); //设置公钥
decrypt.setPrivateKey(privateKey); // 设置私钥
如果出现内容丢失,将 len 数字填大一些
encryptData(encrypt, "Long string", [len=32]);
=> "encryptStr1,encrypt2,..."
decryptData(decrypt, "encryptStr1,encrypt2,...");
=> "Long string"
FAQs
jsencrypt的长数据加密方法
The npm package long-encrypt receives a total of 0 weekly downloads. As such, long-encrypt popularity was classified as not popular.
We found that long-encrypt 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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.