Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
npm install ar-aes
1.main.js引入js文件注册.当然也可以哪里需要哪里引入
import AES from 'ar-aes'
Vue.prototype.AES = AES.AES
2.页面调用
//加密值
let e = this.AES.encrypt('123','1234567891234567','1234567891234567')
//解密值
this.AES.decrypt(e,'1234567891234567','1234567891234567')
1.JS文件引入
var AES = require("ar-aes");
2.页面调用
//加密值
let e = AES.AES.encrypt('123','1234567891234567','1234567891234567')
//解密值
AES.AES.decrypt(e,'1234567891234567','1234567891234567')
加密字符串,返回加密后的字符串
参数 | 说明 | 类型 |
---|---|---|
valueString | 加密字符串 | String |
key | 加密密码KEY,16位 | String |
iv | 偏移量IV,16位 | String |
返回值 | 返回加密后的字符串 | String |
加密字符串,返回加密后的字符串
参数 | 说明 | 类型 |
---|---|---|
valueString | 解密字符串 | String |
key | 加密密码KEY,16位 | String |
iv | 偏移量IV,16位 | String |
返回值 | 返回解密后的字符串,解密失败返回空字符串 | string 或 '' |
FAQs
传输加密,AES对称加密
We found that ar-aes 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
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.