微信小程序AES

上传者: huangshijiazu | 上传时间: 2022-06-27 20:05:11 | 文件大小: 52KB | 文件类型: ZIP
微信小程序AES加密解密:加密: Encrypt :function(word){ var mode = new Crypto.mode.CBC(Crypto.pad.pkcs7); var eb = Crypto.charenc.UTF8.stringToBytes(word); var kb = Crypto.charenc.UTF8.stringToBytes("1234567812345678");//KEY var vb = Crypto.charenc.UTF8.stringToBytes("8765432187654321");//IV var ub = Crypto.AES.encrypt(eb,kb,{iv:vb,mode:mode,asBpytes:true}); return ub; }, 解密: Decrypt:function (word){ var mode = new Crypto.mode.CBC(Crypto.pad.pkcs7); var eb = Crypto.util.base64ToBytes(word); var kb = Crypto.charenc.UTF8.stringToBytes("1234567812345678");//KEY var vb = Crypto.charenc.UTF8.stringToBytes("8765432187654321");//IV var ub = Crypto.AES.decrypt(eb,kb,{asBpytes:true,mode:mode,iv:vb}); return ub; }, 库调用: var Crypto = require('../pages/cryptojs/cryptojs').Crypto;

文件下载

资源详情

[{"title":"( 33 个子文件 52KB ) 微信小程序AES","children":[{"title":"AESTest","children":[{"title":"project.config.json <span style='color:#111;'> 452B </span>","children":null,"spread":false},{"title":"pages","children":[{"title":"logs","children":[{"title":"logs.wxml <span style='color:#111;'> 194B </span>","children":null,"spread":false},{"title":"logs.json <span style='color:#111;'> 56B </span>","children":null,"spread":false},{"title":"logs.wxss <span style='color:#111;'> 114B </span>","children":null,"spread":false},{"title":"logs.js <span style='color:#111;'> 280B </span>","children":null,"spread":false}],"spread":true},{"title":".DS_Store <span style='color:#111;'> 6.00KB </span>","children":null,"spread":false},{"title":"index","children":[{"title":"index.wxss <span style='color:#111;'> 328B </span>","children":null,"spread":false},{"title":"index.json <span style='color:#111;'> 138B </span>","children":null,"spread":false},{"title":"index.wxml <span style='color:#111;'> 216B </span>","children":null,"spread":false},{"title":"index.js <span style='color:#111;'> 1.19KB </span>","children":null,"spread":false}],"spread":true},{"title":"cryptojs","children":[{"title":".DS_Store <span style='color:#111;'> 6.00KB </span>","children":null,"spread":false},{"title":"lib","children":[{"title":"PBKDF2.js <span style='color:#111;'> 1.38KB </span>","children":null,"spread":false},{"title":"PBKDF2Async.js <span style='color:#111;'> 2.92KB </span>","children":null,"spread":false},{"title":"Rabbit.js <span style='color:#111;'> 5.55KB </span>","children":null,"spread":false},{"title":"DES.js <span style='color:#111;'> 42.21KB </span>","children":null,"spread":false},{"title":"MD5.js <span style='color:#111;'> 5.12KB </span>","children":null,"spread":false},{"title":"MARC4.js <span style='color:#111;'> 2.09KB </span>","children":null,"spread":false},{"title":"CryptoMath.js <span style='color:#111;'> 830B </span>","children":null,"spread":false},{"title":"HMAC.js <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"SHA256.js <span style='color:#111;'> 3.42KB </span>","children":null,"spread":false},{"title":"AES.js <span style='color:#111;'> 10.16KB </span>","children":null,"spread":false},{"title":"Crypto.js <span style='color:#111;'> 4.05KB </span>","children":null,"spread":false},{"title":"BlockModes.js <span style='color:#111;'> 10.10KB </span>","children":null,"spread":false},{"title":"SHA1.js <span style='color:#111;'> 1.85KB </span>","children":null,"spread":false}],"spread":false},{"title":"test","children":[{"title":"test.coffee <span style='color:#111;'> 529B </span>","children":null,"spread":false}],"spread":true},{"title":"README.md <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false},{"title":"cryptojs.js <span style='color:#111;'> 254B </span>","children":null,"spread":false},{"title":"package.json <span style='color:#111;'> 2.41KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":".DS_Store <span style='color:#111;'> 6.00KB </span>","children":null,"spread":false},{"title":"utils","children":[{"title":"util.js <span style='color:#111;'> 1.30KB </span>","children":null,"spread":false}],"spread":true},{"title":"app.js <span style='color:#111;'> 755B </span>","children":null,"spread":false},{"title":"app.json <span style='color:#111;'> 259B </span>","children":null,"spread":false},{"title":"app.wxss <span style='color:#111;'> 204B </span>","children":null,"spread":false},{"title":"Read","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明