feat(edit): 服务端代码拆分、优化

This commit is contained in:
R524809
2026-09-15 18:56:13 +08:00
parent da7342b466
commit 7f68aad9f3
15 changed files with 1635 additions and 586 deletions
+4 -3
View File
@@ -52,7 +52,8 @@ export function decryptStoreSecret(
const tag = ciphertextWithTag.subarray(-authenticationTagLength);
const decipher = createDecipheriv('aes-256-gcm', key, nonce);
decipher.setAuthTag(tag);
return Buffer.concat([decipher.update(ciphertext), decipher.final()]).toString(
'utf8',
);
return Buffer.concat([
decipher.update(ciphertext),
decipher.final(),
]).toString('utf8');
}