()
| 38 | function generateTestKey(): string { |
| 39 | return crypto.randomBytes(32).toString('base64'); |
| 40 | } |
| 41 | |
| 42 | function encryptValue(keyBase64: string, plaintext: string): string { |
| 43 | const key = Buffer.from(keyBase64, 'base64'); |
| 44 | const iv = crypto.randomBytes(12); |
| 45 | const cipher = crypto.createCipheriv('aes-256-gcm', key, iv); |
no test coverage detected