From 7898a142ad232abfb6d3fde28f8ba94808298a55 Mon Sep 17 00:00:00 2001 From: rpm-mcarman <65228808+rpm-mcarman@users.noreply.github.com> Date: Tue, 2 Apr 2024 14:25:15 -0400 Subject: [PATCH] Changed back to hardcode --- .../App/Controllers/GlobalFunctions/EncryptionController.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Sources/App/Controllers/GlobalFunctions/EncryptionController.swift b/Sources/App/Controllers/GlobalFunctions/EncryptionController.swift index e920f6d..aa6b82d 100644 --- a/Sources/App/Controllers/GlobalFunctions/EncryptionController.swift +++ b/Sources/App/Controllers/GlobalFunctions/EncryptionController.swift @@ -16,7 +16,8 @@ enum CryptoError: Error{ struct CustomCrypto{ public static func DecryptString(input: String) throws -> String{ let apikey = Environment.get("API_KEY") - let base64Key = apikey! // Replace with your actual key + print(apikey) + let base64Key = "rv0ywT7Ygwh01jP1dQWBP39ogjq5ladO+EoNUGcBVq0=" // Replace with your actual key guard let keyData = Data(base64Encoded: base64Key) else { fatalError("Invalid Base64 key data") }