Advertisement
Guest User

Untitled

a guest
Jan 27th, 2020
296
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace To4Serv.Network.Cryptography
  8. {
  9. using System.Text;
  10. public class PasswordDecryption
  11. {
  12. 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 };
  13. public static string Decrypt(byte[] data)
  14. {
  15. int length = Key.Length;
  16. for (int x = 0; x < data.Length; x++)
  17. {
  18. data[x] ^= Key[x % length];
  19. data[x] ^= Key[(x * 24 % 16) % length];
  20. data[x] ^= Key[(x * 48 % 32) % length];
  21. }
  22. return Encoding.Default.GetString(data);
  23. }
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement