using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DPumpHydr.WinFrmUI.WenSkin.DLL
{
public static class WenSkinHelper
{
///
/// string to bool
///
///
///
public static bool ToBool(this string value)
{
try
{
return Convert.ToBoolean(value);
}
catch { return false; }
}
///
/// string 解密
///
///
///
public static string ToAESDecrypt(this string value)
{
return AES.AesEnDe.AESDecrypt(value) ?? "";
}
///
/// string 加密
///
///
///
public static string ToAESEncrypt(this string value)
{
return AES.AesEnDe.AESEncrypt(value) ?? "";
}
}
}