From 19437c7aa120c5dd510c571a39181014c88f7824 Mon Sep 17 00:00:00 2001 From: glay Date: Tue, 10 Dec 2024 11:35:26 +0800 Subject: [PATCH] Enhance encryption security with additional safeguards. --- app/utils/aws.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/utils/aws.ts b/app/utils/aws.ts index caaec2297..abd98fde5 100644 --- a/app/utils/aws.ts +++ b/app/utils/aws.ts @@ -10,7 +10,7 @@ type ParsedEvent = Record; type EventResult = ParsedEvent[]; // Using a dot as separator since it's not used in Base64 -const SEPARATOR = "."; +const SEPARATOR = "~"; // Unified crypto utilities for both frontend and backend async function generateKey( @@ -121,7 +121,6 @@ export async function decrypt( const dec = new TextDecoder(); return dec.decode(decrypted); } catch (error) { - console.error("[Decryption Error]:", error); throw new Error("Failed to decrypt AWS credentials"); } }