(key, data)
| 384 | } |
| 385 | |
| 386 | function 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 | } |
| 392 | async function hitokoto() { // 随机一言 |
| 393 | try { |
| 394 | let options = { |
no test coverage detected