(secret: string)
| 20 | * @returns A promise resolving to the encrypted value (`iv:ciphertext:authTag`) and the IV. |
| 21 | */ |
| 22 | export async function encryptSecret(secret: string): Promise<{ encrypted: string; iv: string }> { |
| 23 | return encrypt(secret, getEncryptionKey()) |
| 24 | } |
| 25 | |
| 26 | /** |
| 27 | * Decrypts a secret previously produced by {@link encryptSecret}. Logs and |
no test coverage detected