예제 #1
0
        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);
        }
예제 #2
0
 public static string GetFileEncryptionKey(string filename)
 {
     return(EncryptedPlayerPrefs.GetEncryptedString("__shhh__" + filename));
 }