• [HELP] C# Decrypt urgent help needed
    2 replies, posted
Hey there, i'm pretty sure this code here is a decrypt of certain data: [quote]} public static string PDC(string Data, string Key, uint ExtraRounds = 0u) { byte[] bytes = Encoding.Default.GetBytes(Data); byte[] bytes2 = PayloadToMemory.PDCB(ref bytes, Encoding.Default.GetBytes(Key), ExtraRounds); return Encoding.Default.GetString(bytes2); } public static byte[] PDCB(ref byte[] Data, byte[] Key, uint ExtraRounds = 0u) { int arg_10_0 = 0; int num = (int)((long)(Data.Length - 1) * (long)((ulong)ExtraRounds + 1uL)); for (int i = arg_10_0; i <= num; i++) { Data[i % Data.Length] = (byte)(((int)((Data[i % Data.Length] ^ Key[i % Key.Length]) - Data[(i + 1) % Data.Length]) + 256) % 256); } Array.Resize<byte>(ref Data, Data.Length - 1); return Data; } public static byte[] decompressPackage(byte[] compressedPackage) {[/quote] I was wondering how i could use that to decrypt the crypted data located elsewhere in the source. Regards
Please use [noparse][code][/noparse] tags and indent your code. It hurts my eyes to try to read that.
[QUOTE=epsilonjr;44883022]Hey there, i'm pretty sure this code here is a decrypt of certain data: I was wondering how i could use that to decrypt the crypted data located elsewhere in the source. Regards[/QUOTE] What exactly do you need help with? Just run the code? Where is that decompiled from anyway? If you're trying to hack something and can even figure that out you'll most likely not be successful in what you're planing. Go back to the basics. (Not that being a beginner is bad! But if you are, you should start with something a lot easier)
Sorry, you need to Log In to post a reply to this thread.