Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace To4Serv.Network.Cryptography
- {
- using System.Text;
- public class PasswordDecryption
- {
- static byte[] Key = new byte[32] { 40, 45, 21, 66, 50, 80, 33, 2, 03, 34, 59, 83, 12, 2, 28, 9, 9, 2, 80, 73, 202, 31, 99, 75, 7, 4, 6, 32, 122, 34, 69, 66 };
- public static string Decrypt(byte[] data)
- {
- int length = Key.Length;
- for (int x = 0; x < data.Length; x++)
- {
- data[x] ^= Key[x % length];
- data[x] ^= Key[(x * 24 % 16) % length];
- data[x] ^= Key[(x * 48 % 32) % length];
- }
- return Encoding.Default.GetString(data);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement