Results 1 to 5 of 5

Thread: Can I get the original string from a HashCode?

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2000
    Location
    I'm right here!
    Posts
    849

    Question Can I get the original string from a HashCode?

    Hello!!

    Can I get the original string from a HashCode?
    I mean, do the reverse action of GetHashCode.

    thanks

    Dekel C.

  2. #2
    Banned
    Join Date
    Nov 2005
    Posts
    2,367

    Re: Can I get the original string from a HashCode?

    You're going to have alot of trouble doing this without the hash tables (I have a copy from defcon 13, but it's like... 4 DVDs).

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Can I get the original string from a HashCode?

    Hashing is intended to be a one-way operation. If you to be able to get the original value back again then use a symmetric encryption method that is intended for the purpose.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  4. #4
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Re: Can I get the original string from a HashCode?

    Depends what hashing algorithm was used to begin with. if it was MD5 then you might as well not bother. If it's just a quick 32bit one then you could probably brute it in a coffee break.
    I don't live here any more.

  5. #5
    Hyperactive Member BrandonTurner's Avatar
    Join Date
    Sep 2001
    Location
    East Lansing, Michiagn
    Posts
    268

    Re: Can I get the original string from a HashCode?

    You could override GetHashCode() with your own hash function that you know how to do forward and backwards(there are very limited ways to do this). But then your hash table would have to save the hash of each object before it mods it to get back to the orginal object.

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