mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-13 20:53:45 +08:00
Enhance encryption security with additional safeguards.
This commit is contained in:
@@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user