Exemple #1
0
        static void PasswordTest()
        {
            Console.WriteLine("输入username:");
            var userName = Console.ReadLine();

            Console.WriteLine("输入密码:");
            var pwd = Console.ReadLine();

            var password = SSOHelper.EncryptPassword(pwd, userName);

            Console.WriteLine("密码加密结果:" + password);
            Console.WriteLine("密文解密结果:" + SSOHelper.DecryptPassword(password, userName));
        }