Results 1 to 5 of 5

Thread: System.Security.Cryptography

  1. #1

    Thread Starter
    Member
    Join Date
    Nov 2002
    Location
    Austria
    Posts
    52

    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

  2. #2
    Hyperactive Member
    Join Date
    Aug 2002
    Location
    Fort Collins, CO
    Posts
    366
    Here's a microsoft How-to that shows a pretty cool technique using that namespace: http://msdn.microsoft.com/library/de...SecNetHT03.asp

  3. #3
    Registered User
    Join Date
    Nov 2002
    Location
    Växjö, Sweden
    Posts
    314
    ...and heres a project example for encryption of a textfile, works with other types of streams.......

    Encrypt and decrypt data

  4. #4
    Member EagleEye's Avatar
    Join Date
    May 2002
    Location
    South Carolina, USA
    Posts
    43
    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."

  5. #5
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    use this with the function in the above link to save encrypted values
    VB Code:
    1. 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
  •  



Click Here to Expand Forum to Full Width