(text)
| 379 | } |
| 380 | |
| 381 | function unpad(text) { |
| 382 | const padding = text.charCodeAt(text.length - 1); |
| 383 | return text.slice(0, text.length - padding); |
| 384 | } |
| 385 | |
| 386 | function aesEncrypt(key, data) { |
| 387 | const cipher = crypto.createCipheriv('aes-128-ecb', key, ''); |
no outgoing calls
no test coverage detected