feat: 添加导出连接功能

This commit is contained in:
Baobhan Sith
2025-05-10 16:35:20 +08:00
parent 4b9d086ae6
commit b702eb3b88
11 changed files with 379 additions and 29 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ const tagLength = 16; // GCM 认证标签长度
/**
* Internal helper to get and validate the encryption key buffer on demand.
*/
const getEncryptionKeyBuffer = (): Buffer => {
export const getEncryptionKeyBuffer = (): Buffer => {
const keyEnv = process.env.ENCRYPTION_KEY;
if (!keyEnv) {
// This should ideally not happen due to initializeEnvironment in index.ts