-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
22 lines (19 loc) · 782 Bytes
/
Program.cs
File metadata and controls
22 lines (19 loc) · 782 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
using System.Text;
namespace Support;
class Program
{
static void Main(string[] args)
{
// Using the data from the decompiled file:
string passwordEncodedAsBase64 = "0Nv32PTwgYjzg9/8j5TbmvPd3e7WhtWWyuPsyO76/Y+U193E";
byte[] key = Encoding.ASCII.GetBytes("armando");
byte[] passwordBase64AsByte = Convert.FromBase64String(passwordEncodedAsBase64);
byte[] passwordAsByte = passwordBase64AsByte;
for (int i = 0; i < passwordBase64AsByte.Length; i++)
{
passwordAsByte[i] = (byte)((uint)(passwordBase64AsByte[i] ^ key[i % key.Length]) ^ 0xDFu);
}
string passwordDecoded = Encoding.UTF8.GetString(passwordAsByte);
Console.WriteLine($"Decoded password: {passwordDecoded}");
}
}