public static string DecryptFile(string filename, string encryptedContent) { if (encryptedContent == null || encryptedContent.Length == 0) { return(null); } string encryptedString = EncryptedPlayerPrefs.GetEncryptedString("__shhh__" + filename); if (encryptedString != null && encryptedString.Length > 0) { return(AesCipher.Decrypt(encryptedContent, encryptedString)); } return(null); }
public static string GetFileEncryptionKey(string filename) { return(EncryptedPlayerPrefs.GetEncryptedString("__shhh__" + filename)); }