C ++ windows编程问题 [英] C++ windows programming question

查看:59
本文介绍了C ++ windows编程问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我刚刚开始使用Windows编程,我收到了一个练习来创建一个Windows程序,要求用户输入用户名和密码,然后验证密码。



这是通过sql文件(用户名和密码存储在哪里)的唯一方法吗?我尚未开始使用sql并且想知道我是否可以在代码中存储细节以及验证?



帮助将不胜感激,因为我从谷歌获得的回复都表明应该使用sql数据库。



谢谢

C来自CT

Hi
I am just starting out with windows programming, i received an exercise to create a windows programme that requests the user to enter a username and password and then validates the password.

Is the only way to do that via a sql file(where the username and password is stored?) I have not started working on sql yet and wonder if i can do storing of the details in the code as well as the validation?

Help will be appreciated, as the responses i get from google all indicate a sql database should be used.

Thanks
C from CT

推荐答案

数据库不是您可以存储密码的唯一地方:您也可以使用文件。但是请确保不要存储密码本身,而是存储哈希 es。请参阅以下文章 OriginalGriff 的提示:密码存储:如何操作。 [ ^ ]。
The database is not the only place where you may store the password: you may use as well a file. However make sure to store NOT the passwords themselves but their hashes. See the following article OriginalGriff''s tip for a guideline: Password Storage: How to do it.[^].


谢谢你们俩,请尝试一下谢谢
Thank you both, will try it thanks


谢谢你们两位,试试谢谢
Thank you both, will try it thanks


这篇关于C ++ windows编程问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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