()
| 1659 | * @returns {string} |
| 1660 | */ |
| 1661 | export const generateEncryptKey = (): string => { |
| 1662 | return randomBytes(24).toString('base64') |
| 1663 | } |
| 1664 | |
| 1665 | /** |
| 1666 | * Returns the directory where auth secrets are stored (same as encryption key directory). |