I can't be bothered to do a real solution

This commit is contained in:
2025-06-11 15:54:13 -07:00
parent 07e109eec3
commit 2e77a159c3

View File

@@ -2,6 +2,7 @@ using System;
using System.IO;
using System.Security.Cryptography;
using System.Text;
using UnityEngine;
public class SensitiveInfo
{
@@ -30,6 +31,8 @@ public class SensitiveInfo
}
public static string Decrypt(string dataB64, string key)
{
try
{
var data = Convert.FromBase64String(dataB64);
using Aes aes = Aes.Create();
@@ -47,4 +50,10 @@ public class SensitiveInfo
return reader.ReadToEnd();
}
catch
{
Application.Quit();
return null;
}
}
}