MD5
RSA
DES RC2 Rijndael TripleDES
public class EDA {
public static void EncryptTextFile(string path, string key) {
path = path.Replace("file:///", "");
if(File.Exists(path)) {
StreamReader streamReader = File.OpenText(path);
string decryptData = streamReader.ReadToEnd();
streamReader.Close();
string enctyptData = EncryptString(decryptData, key);
StreamWriter streamWriter = File.CreateText(path);
streamWriter.Write(enctyptData);
streamWriter.Close();
} else {
Debug.Log("There is not exist file path : " + path);
}
}
public static void DecryptTextFile(string path, string key) {
path = path.Replace("file:///", "");
if(File.Exists(path)