This article is a mirror article of machine translation, please click here to jump to the original article.

View: 13704|Reply: 0

[Encryption and Decryption] Zhengfang Academic System Password Decryption Source Code

[Copy link]
Posted on 5/19/2015 9:54:17 AM | | |
  1. public static string jiemi(string PlainStr, string key)
  2. {
  3.     int num = 1;
  4.     checked
  5.     {
  6.         if (Strings.Len(PlainStr) % 2 == 0)
  7.         {
  8.             string text = Strings.StrReverse(Strings.Left(PlainStr, (int)Math.Round((double)Strings.Len(PlainStr) / 2.0)));
  9.             string text2 = Strings.StrReverse(Strings.Right(PlainStr, (int)Math.Round((double)Strings.Len(PlainStr) / 2.0)));
  10.             PlainStr = text + text2;
  11.         }
  12.         int num2 = Strings.Len(PlainStr);
  13.         string text5="";
  14.         for (int i = 1; i <= num2; i++)
  15.         {
  16.             string text3 = Strings.Mid(PlainStr, i, 1);
  17.             string text4 = Strings.Mid(key, num, 1);
  18.             if ((Strings.Asc(text3) ^ Strings.Asc(text4)) < 32 | (Strings.Asc(text3) ^ Strings.Asc(text4)) > 126 | Strings.Asc(text3) < 0 | Strings.Asc(text3) > 255)
  19.             {
  20.                 text5 += text3;
  21.             }
  22.             else
  23.             {
  24.         text5 += Strings.Chr(Strings.Asc(text3) ^ Strings.Asc(text4)).ToString();
  25.             }
  26.             if (num == Strings.Len(key))
  27.             {
  28.                 num = 0;
  29.             }
  30.             num++;
  31.         }
  32.         return text5;
  33.     }
  34. }
Copy code
See for yourself, not much more.




Previous:Three tricks to choose from the full web page to quickly capture the picture
Next:asp.net download the source code of the Zhengfang Academic Affairs System
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com