// Token: 0x06004DC0 RID: 19904 RVA: 0x001A1324 File Offset: 0x0019F724 public static string DecryptString(string sourceString) { if (SimpleEncryption.provider == null) { SimpleEncryption.SetupProvider(); } ICryptoTransform cryptoTransform = SimpleEncryption.provider.CreateDecryptor(); byte[] array = Convert.FromBase64String(sourceString); byte[] bytes = cryptoTransform.TransformFinalBlock(array, 0, array.Length); return(Encoding.UTF8.GetString(bytes)); }
// Token: 0x06004DBF RID: 19903 RVA: 0x001A12DC File Offset: 0x0019F6DC public static string EncryptString(string sourceString) { if (SimpleEncryption.provider == null) { SimpleEncryption.SetupProvider(); } ICryptoTransform cryptoTransform = SimpleEncryption.provider.CreateEncryptor(); byte[] bytes = Encoding.UTF8.GetBytes(sourceString); byte[] inArray = cryptoTransform.TransformFinalBlock(bytes, 0, bytes.Length); return(Convert.ToBase64String(inArray)); }