123456789101112131415161718192021222324252627282930313233 |
- using System;
- using WMS.Util;
- namespace WMS.Core
- {
- public class SysSecurityCore
- {
- const string AES256IV = "C686096CDBB34A77";
- const string AES256Key = "C628CE01C4F84037BEA124C90B3EE1FC";
- public static string Aes256Encrypt(string EncryptText)
- {
- try
- {
- return SecurityUtil.AesEncrypt(EncryptText, AES256Key, AES256IV);
- }
- catch (Exception ex)
- {
- throw ex;
- }
- }
- public static string Aes256Decrypt(string DecryptText)
- {
- try
- {
- return SecurityUtil.AesDecrypt(DecryptText, AES256Key, AES256IV);
- }
- catch (Exception ex)
- {
- throw ex;
- }
- }
- }
- }
|