|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Store encrypted password in my.settings?Hi all,
with VS2005 I want to use my.settings for storing user settings. I also want to store a password there, but of course not in plain text. How could I encrypt the password (or the whole settings file?) ? Many thanks in advance! well if you have a function that encrypts your string, or if you have a 3rd
party control that does that then you can just say ''EncryptString being the control or 3rd party encryption object Dim encr as New EncryptString Dim str as String = "Password" my.setting.EncryptPass = encr.Encrypt(str) also, im not positive so someone correct me if im wrong, i think VB has an encrypt function of sorts, ive never used it so id check the documentation for info on that -- -iwdu15 Yes, there is a system.Security.Cryptography section, but I'm not sure how
to work with this. The password should of course be "unhackable" (best as possible, of course it would not be too serious if yomeone really hacks). Someone knows what is the best way to do this? Or any tutorials on the net which are quite good?I read some but could not decide whether they describe a good solution or not.... Thanks! system.Security.Cryptography Show quoteHide quote "iwdu15" <jmmgoalsteratyahoodotcom> wrote in message news:165EAD17-B8A2-4788-8FB8-B63A27E5A9AA@microsoft.com... > well if you have a function that encrypts your string, or if you have a > 3rd > party control that does that then you can just say > > ''EncryptString being the control or 3rd party encryption object > Dim encr as New EncryptString > Dim str as String = "Password" > > my.setting.EncryptPass = encr.Encrypt(str) > > also, im not positive so someone correct me if im wrong, i think VB has an > encrypt function of sorts, ive never used it so id check the documentation > for info on that > -- > -iwdu15
String and int Issue
Printer Command Visual Basic 6.0, Enterprise Edition ASP.NET: VSNET2003 to VSNET2005 Question on XMLSerialization Comparing recordsets in VB2005 What type is best for the return value of a function? DateTime problem DirectX and False Stretching Images Writing ActiveX DLL in VB 2005 |
|||||||||||||||||||||||