
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
org.jasypt.util.text.BasicTextEncryptor for Node.js
Spring Boot
集成 jasypt
对配置项进行加密,为了与 Java
体系保持一致,于是有了 Jasypt.js
SDK
'use strict';
const Jasypt = require('jasypt');
const jasypt = new Jasypt();
// 设置秘钥
jasypt.setPassword('G0CvDz7oJn60');
// 加密
const encryptMsg = jasypt.encrypt('admin');
// 解密
const decryptMsg = jasypt.decrypt(encryptMsg);
命令行
$ jasypt -h
Usage: jasypt [options]
Options:
-v, --version output the version number
-p, --password <pwd> The secret key
-e, --encrypt <msg> Text to be encrypting
-d, --decrypt <encryptMsg> Text to be decrypting
-h, --help output usage information
Examples:
$ jasypt -p 0x1995 -e admin
$ jasypt -p 0x1995 -d nsbC5r0ymz740/aURtuRWw==
// 对配置项的ENC(xxx)进行解密
const data = {
code: 42,
test: {
db: 'ENC(c0KA89TBZ6TbLn7E6RIiFQ==)',
pwd: {
a: 'ENC(c0KA89TBZ6TbLn7E6RIiFQ==)'
},
asad: {
pwd: {
str: 'str',
host: 'ENC(c0KA89TBZ6TbLn7E6RIiFQ==)',
pwd: 'ENC(c0KA89TBZ6TbLn7E6RIiFQ==)'
}
},
items: [{
user: 'user1',
pwd: 'ENC(c0KA89TBZ6TbLn7E6RIiFQ==)'
}, {
user: 'user2',
pwd: 'ENC(c0KA89TBZ6TbLn7E6RIiFQ==)'
}, {
user: 'user3',
pwd: 'ENC(c0KA89TBZ6TbLn7E6RIiFQ==)'
}],
}
};
const jasypt = new Jasypt();
jasypt.setPassword('P8dEw34TgvbY');
jasypt.decryptConfig(data);
// 解密出来的内容
const data = {
code: 42,
test: {
db: 'admin',
pwd: {
a: 'admin'
},
asad: {
pwd: {
str: 'str',
host: 'admin',
pwd: 'admin'
}
},
items: [{
user: 'user1',
pwd: 'admin'
}, {
user: 'user2',
pwd: 'admin'
}, {
user: 'user3',
pwd: 'admin'
}],
}
};
FAQs
org.jasypt.util.text.BasicTextEncryptor for Node.js
The npm package jasypt receives a total of 1,699 weekly downloads. As such, jasypt popularity was classified as popular.
We found that jasypt 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.