1234567891011121314151617181920212223242526272829 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace DecryptPwd.Utils
- {
- class Xmangager
- {
- /// <summary>
- /// Decrypt password
- /// </summary>
- public static string Decrypt(string password)
- {
- string result = string.Empty;
- try
- {
- byte[] data = Convert.FromBase64String(password);
- result = Encoding.UTF8.GetString(data);
- }
- catch (Exception ex)
- {
- Console.WriteLine(ex.Message);
- }
- return result;
- }
- }
- }
|