示例#1
0
        /// <summary>
        /// build clear text
        /// </summary>
        /// <param name="s"></param>
        /// <param name="k"></param>
        /// <param name="_CK"></param>
        /// <returns></returns>
        public static bool VerifySign(this string s, string k, string sign, CipherKind _CK = CipherKind.RSA2)
        {
            var _ICM = Activator.CreateInstance(Type.GetType("BCL.ToolLib.Modules.CipherModule_" + _CK.ToString())) as ICipherModule;

            return(_ICM.VerifySign(s, k, sign));
        }
示例#2
0
        /// <summary>
        /// build clear text
        /// </summary>
        /// <param name="s"></param>
        /// <param name="k"></param>
        /// <param name="_CK"></param>
        /// <returns></returns>
        public static string BuildClear(this string s, string k, CipherKind _CK = CipherKind.DES)
        {
            var _ICM = Activator.CreateInstance(Type.GetType("BCL.ToolLib.Modules.CipherModule_" + _CK.ToString())) as ICipherModule;

            return(_ICM.BuildClear(s, k));
        }