Enhance encryption security with additional safeguards.

This commit is contained in:
glay 2024-12-10 11:55:14 +08:00
parent cb0422b8f2
commit 0ec1ae6276
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ export async function encrypt(
return [saltBase64, ivBase64, encryptedBase64].join(SEPARATOR); return [saltBase64, ivBase64, encryptedBase64].join(SEPARATOR);
} catch (error) { } catch (error) {
console.error("[Encryption Error]:", error); // console.error("[Encryption Error]:", error);
throw new Error("Failed to encrypt AWS credentials"); throw new Error("Failed to encrypt AWS credentials");
} }
} }