/// <summary>
        /// 验证Secret是否有效
        /// </summary>
        /// <param name="decryptedSecret"></param>
        /// <param name="encryptor"></param>
        /// <returns></returns>
        public bool IsValid(string decryptedSecret, IEncryptor encryptor)
        {
            if (decryptedSecret.IsNullOrEmpty())
            {
                return(false);
            }

            return(this.AppSecretHash.Equals(encryptor.EncryptSecret(decryptedSecret, this.AppSecretSalt)));
        }