* Gets the encryption key as a Buffer from ENCRYPTION_KEY env var * ENCRYPTION_KEY is a 64-character hex string (32 bytes)
()
| 16 | * ENCRYPTION_KEY is a 64-character hex string (32 bytes) |
| 17 | */ |
| 18 | function getEncryptionKey(): Buffer { |
| 19 | return Buffer.from(env.ENCRYPTION_KEY, 'hex') |
| 20 | } |
| 21 | |
| 22 | const weakEncryptionKey = '0'.repeat(64) |
| 23 |