using System.Security.Cryptography;
public class EncryptionObject
public static void Main()
string str1 = ConvHexToStr("5F2C223F563F3F3F");
DESCryptoServiceProvider DES = new DESCryptoServiceProvider();
DES.Key = Encoding.ASCII.GetBytes(str1);
DESCryptoServiceProvider des = DES;
if (EncryptionObject.<setupDESEncryption>o__SiteContainer0.<>p__Site1 == null)
EncryptionObject.<setupDESEncryption>o__SiteContainer0.<>p__Site1 = CallSite<Func<CallSite, object, byte[]>>.Create(Binder.Convert(CSharpBinderFlags.None, typeof (byte[]), typeof (EncryptionObject)));
Func<CallSite, object, byte[]> target = EncryptionObject.<setupDESEncryption>o__SiteContainer0.<>p__Site1.Target;
CallSite<Func<CallSite, object, byte[]>> pSite1 = EncryptionObject.<setupDESEncryption>o__SiteContainer0.<>p__Site1;
if (EncryptionObject.<setupDESEncryption>o__SiteContainer0.<>p__Site2 == null)
EncryptionObject.<setupDESEncryption>o__SiteContainer0.<>p__Site2 = CallSite<Func<CallSite, Encoding, object, object>>.Create(Binder.InvokeMember(CSharpBinderFlags.None, "GetBytes", (IEnumerable<Type>) null, typeof (EncryptionObject), (IEnumerable<CSharpArgumentInfo>) new CSharpArgumentInfo[2]
CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, (string) null),
CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, (string) null)
object obj = EncryptionObject.<setupDESEncryption>o__SiteContainer0.<>p__Site2.Target((CallSite) EncryptionObject.<setupDESEncryption>o__SiteContainer0.<>p__Site2, Encoding.ASCII, str2);
byte[] numArray = target((CallSite) pSite1, obj);
public static string ConvStrToHex(string input)
foreach (char ch in input.ToCharArray())
string str2 = string.Format("{0:X}", (object)Convert.ToInt32(ch));
public static string ConvHexToStr(string hexInput)
char[] charArray = hexInput.ToCharArray();
for (long index = 0; index <= (long)(hexInput.Length - 2); index += 2L)
string str2 = char.ConvertFromUtf32(Convert.ToInt32(charArray[index].ToString() + (object)charArray[index + 1L], 16));
private static void Dump(object o)
string json = JsonConvert.SerializeObject(o, Formatting.Indented);