MCPcopy Index your code
hub / github.com/smallfawn/QLScriptPublic / aesEncrypt

Function aesEncrypt

backup/sysxc.js:386–391  ·  view source on GitHub ↗
(key, data)

Source from the content-addressed store, hash-verified

384}
385
386function aesEncrypt(key, data) {
387 const cipher = crypto.createCipheriv('aes-128-ecb', key, '');
388 let encrypted = cipher.update(pad(data), 'utf8', 'base64');
389 encrypted += cipher.final('base64');
390 return encrypted;
391}
392async function hitokoto() { // 随机一言
393 try {
394 let options = {

Callers 2

getVcodeMethod · 0.70
checkVcodeMethod · 0.70

Calls 1

padFunction · 0.70

Tested by

no test coverage detected