Esempio n. 1
0
        /// <summary>
        /// 解密字符串(使用默认秘钥)
        /// </summary>
        public static string DecryptWithDefaultKey(string encryptBase64)
        {
            AesEncryptor encrypt = new AesEncryptor();

            return(encrypt.Decrypt(encryptBase64));
        }
Esempio n. 2
0
        /// <summary>
        /// 加密字符串(使用默认秘钥)
        /// </summary>
        public static string EncryptWithDefaultKey(string sourceText)
        {
            AesEncryptor encrypt = new AesEncryptor();

            return(encrypt.Encrypt(sourceText));
        }