推荐的登录密码存储方式 [英] Recommend way to store login password

查看:90
本文介绍了推荐的登录密码存储方式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是C#的新手,我创建了一个登录系统.是独立的,不是基于Web的...
如何在不使用任何数据库的情况下保存登录ID和密码?

解决方案



如果您不想使用数据库来存储登录名和密码详细信息,则可以选择将数据存储在文件中,或者使用XML来存储登录数据.

希望对您有帮助.

请参考以下链接以使用XML.

http://www.c-sharpcorner.com/UploadFile/mahesh/ReadWriteXMLTutMellli2111282005041517AM/ReadWriteXMLTasp /a> [ ^ ]

http://www.codekicks.com/2007/04/reading-and-writing-xml-files-using-c.html [ 解决方案

Hi,

If you dont want to use database to store the login and password detail then you have a choice to store the data in file or use XML to store the login data.

Hope this will help you.

Please refer the below links to work with XML.

http://www.c-sharpcorner.com/UploadFile/mahesh/ReadWriteXMLTutMellli2111282005041517AM/ReadWriteXMLTutMellli21.aspx[^]

http://www.codekicks.com/2007/04/reading-and-writing-xml-files-using-c.html[^]


Since you are creating a desktop application storing the userID and password would depend on the number of users. If there will be only one user then I suggest keep the userID and password in registry. If there could be multiple users then keep them in an XML file in some isolated storage.

Note: In both the cases do not store it in plain text. store it in encrypted format.


to save the login ID and password without using any database you can use cookies


这篇关于推荐的登录密码存储方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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