KingNET.PageLib/Helper/EncryptHelper.cs

(开头部分) 10KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Security.Cryptography;
using System.Collections;
using System.Web;

namespace KingNET.PageLib.Helper
{
    /// <summary>
    /// 加密帮助类,EncryptCore静态化实现
    /// </summary>
    public class EncryptHelper
    {
        public static string GetEncryptQueryString(string Source)
        {
            return HttpUtility.UrlEncode(Encrypt(Source));
        }
        public static string EncryptKey = "EaSuNy#";
        public static string EncryptIV = "eSuNny3#";
        public static string SSOTicketIV = "axZ2OgbE";
        public static string SSOTicketKey = "FPs7k4fz";

        public static string Encrypt(string strSource)
        {
            try
            {
                EncryptCore encryptCore = new EncryptCore();
                return encryptCore.Encrypt(strSource, EncryptKey, EncryptIV);
            }
            catch
            {
                return "";
            }
        }

        /// <summary>
        /// 解密字符串
        /// </summary>
        /// <param name="strSource">要解密的字符串</param>
        /// <returns>解密后的字符串</returns>
        public static string Decrypt(string strSource)
        {
            try
            {
                EncryptCore encryptCore = new EncryptCore();
                return encryptCore.Decrypt(strSource, EncryptKey, EncryptIV);
            }
            catch
            {
                return "";
            }
        }

        /// <summary>
        /// 加密字符串
        /// </summary>
        /// <param name="strSource">要加密的字符串</param>
后面还有 265 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。