Created
July 28, 2014 16:14
-
-
Save jershmagersh/446a1f01d8cca8e7fc0c to your computer and use it in GitHub Desktop.
Algo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void btnDecode_Click(object sender, EventArgs e) | |
{ | |
this.pbRoge.Image = Resources.bob_roge; | |
byte[] dat_secret = Resources.dat_secret; | |
string text = ""; | |
for (int i = 0; i < dat_secret.Length; i++) | |
{ | |
byte b = dat_secret[i]; | |
text += (char)((b >> 4 | ((int)b << 4 & 240)) ^ 41); | |
} | |
text += "\0"; | |
string text2 = ""; | |
for (int j = 0; j < text.Length; j += 2) | |
{ | |
text2 += text[j + 1]; | |
text2 += text[j]; | |
} | |
string text3 = ""; | |
for (int k = 0; k < text2.Length; k++) | |
{ | |
char arg_B6_0 = text2[k]; | |
text3 += (char)((byte)text2[k] ^ 102); | |
} | |
this.lbl_title.Text = text3; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment