Procházet zdrojové kódy

Changed back to hardcode

main
rpm-mcarman před 2 roky
rodič
revize
7898a142ad
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. +2
    -1
      Sources/App/Controllers/GlobalFunctions/EncryptionController.swift

+ 2
- 1
Sources/App/Controllers/GlobalFunctions/EncryptionController.swift Zobrazit soubor

@@ -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")
}


Načítá se…
Zrušit
Uložit