|
-
Nov 28th, 2002, 09:32 AM
#1
Thread Starter
Member
System.Security.Cryptography
hi all
i want to encrypt a string (password) and store it in a database. in the .net-framework there is a namespace called System.Security.Cryptography which implements several algorithms (rc2, sha-1, md5...)
does anybody have experience with this namespace? all i want to to is encrypt (and decrypt) a string... the used encryption-algorithm is not important
thanks
robert
-
Nov 28th, 2002, 10:59 AM
#2
Hyperactive Member
Here's a microsoft How-to that shows a pretty cool technique using that namespace: http://msdn.microsoft.com/library/de...SecNetHT03.asp
-
Nov 28th, 2002, 12:21 PM
#3
Registered User
...and heres a project example for encryption of a textfile, works with other types of streams.......
Encrypt and decrypt data
-
Nov 30th, 2002, 10:56 PM
#4
Member
The problem I have found with VB.Net and reversible encryption is the inability to use thier methods for anything other than ASP.Net. If you do not plan the use this program over the internet the I suggest using the method proposed by pirate in this thread:
http://vbforums.com/showthread.php?s=&threadid=215106
Eagle Eye
"Programming is easy ... when you are done."
-
Dec 1st, 2002, 08:23 AM
#5
Sleep mode
use this with the function in the above link to save encrypted values
VB Code:
MainData1.Recordset.Fields("Fieldname") = EncryptText(Txtbox.Text, Database_Password)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|