从外部文本文件获取数据库密码! [英] Getting database password from an external text file !

查看:78
本文介绍了从外部文本文件获取数据库密码!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将数据库密码从外部存储在一个文本文件中.而且,当我要连接到数据库时,必须以某种形式给出此密码,并通过使用外部存储的密码进行验证,我希望在vb 2005和vb 2008中使用此密码,但不使用C#

谢谢!

I want store my database password externally in a text file. And when I want to connect to the database this password must be given in a form and verified from using that externally stored password I want this in vb 2005 and vb 2008 but not using C#

Thanks!

推荐答案

在外部文本文件中存储密码的意义何在?您最好只在显示器上使用粘滞便笺.

只需尝试使用提供的凭据进行连接即可.如果它们是错误的,它将失败,并且您可以处理该异常.
What would be the point in storing passwords in an external text file? You might as well just use a sticky note attached to your monitor.

Just attempt to make the connection using the provided credentials. If they are wrong it will fail and you can handle the exception.


我写了这篇文章 ^ ],因为这样的设计通常会使它投入生产.

最好的问候
Espen Harlinn
I wrote this article Security : It’s getting worse[^], because designs like this often makes it into production.

Best regards
Espen Harlinn


这篇关于从外部文本文件获取数据库密码!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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