Results 1 to 6 of 6

Thread: MD5 Encryption...

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2001
    Location
    USA
    Posts
    1,026

    MD5 Encryption...

    Can MD5 Hash encryption be decrypted? I'm using the MD5CryptoServiceProvider

    Thanx,

    Squirrelly1
    Now happily married and still crankin' away at the keyboard. Life is grand for a coder, no?

  2. #2
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687
    MD5 is a hash, not an encryption. The term "Hash encryption" is a contradiction. Hashes only go one way. They cannot be reversed.

    TG
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2001
    Location
    USA
    Posts
    1,026
    Oh, ok... thanx for clearing it up for me.

    One more thing though...

    Is there any way to customize how the Hashing is being done using any of the following...

    MD5CryptoServiceProvider
    SHA512Managed
    or any of the other Crypto stuff in VB.Net???

    The way it looks to me, anyone can recreate my hashed strings if they know what I hashed from...

    Thanks again,

    Squirrelly1
    Now happily married and still crankin' away at the keyboard. Life is grand for a coder, no?

  4. #4
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687
    Originally posted by squirrelly1
    Oh, ok... thanx for clearing it up for me.

    One more thing though...

    Is there any way to customize how the Hashing is being done using any of the following...

    MD5CryptoServiceProvider
    SHA512Managed
    or any of the other Crypto stuff in VB.Net???

    The way it looks to me, anyone can recreate my hashed strings if they know what I hashed from...

    Thanks again,

    Squirrelly1
    Customize it? No. They are standard formulas. IF I hash something in, say VB using MD5, I know I can get the same result using MD5 hashing C++, PHP, Java, etc.
    Hashing really shouldn't be used to encrypt things (even though it's done all the time) but can be used to determine if a data stream has been tinkered with. Example. Let's say I have a app data file that I keep information concerning the config state of my application. I don't want people to screw with it. So I run the contents through it and get a hash result. The next time I run the app, I put the data back through the hash and get a result. I can then compare that result with the original result and determine if someone has been poking around in the file.

    Yes, if they know the source data, they can recreate the same hash. That's actually the prupose of the hash.

    TG
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  5. #5

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2001
    Location
    USA
    Posts
    1,026
    Is there any way to see the actual code that does this in VB? Maybe I could create a new class that is just like the Hashing classes in VB and change a few things so that it would be different...

    A lot more work, but seemingly doable if I can get access to the core code of the class...

    Where might I find this?

    Thanks,

    Squirrelly1
    Now happily married and still crankin' away at the keyboard. Life is grand for a coder, no?

  6. #6
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687
    Try searching at http://www.planetsourcecode.com


    I'm sure you'll find what you are looking for there.

    TG
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

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