Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.