在C#中编码密码验证 [英] coding password verication in c#

查看:64
本文介绍了在C#中编码密码验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将密码验证编码到我的C#程序中?

how do I code password verification into my c# program?

推荐答案

您不知道如何在C#中进行字符串比较吗?我能想到的唯一技巧是,如果数据位于数据库中,则执行查询以返回密码是否正确的查询,而不是将密码拉入内存,但是从广义上讲,这样做很简单,并且您对此有更具体的问题,应该提出来.
Do you not know how to do string comparisons in C# ? The only trick I can think of, if the data is in the DB, is to do a query that returns if the password was correct, instead of pulling the password in to memory, but doing this, broadly speaking, is trivial, and if you have a more specific question about it, you should ask it.


这篇关于在C#中编码密码验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆