Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 6 of 6

Thread: Looking for algorithm idea help

  1. #1
    Junior Member
    Join Date
    Nov 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Looking for algorithm idea help

    I'm trying to solve a puzzle: I've been given a bunch of sets of String/Key/Hash trios, and I need to figure out the hash function that generated each Hash from the given String/Key.

    I'm stumped. Thoughts?


  2. #2
    Forum VIP
    Join Date
    Jul 2010
    Posts
    1,676
    Thanks
    25
    Thanked 329 Times in 305 Posts

    Default Re: Looking for algorithm idea help

    Can you give an example of what it looks like when you start, what parts of that example you get, and what it should look like at the end?
    NOTE TO NEW PEOPLE LOOKING FOR HELP ON FORUM:

    When asking for help, please follow these guidelines to receive better and more prompt help:
    1. Put your code in Java Tags. To do this, put [highlight=java] before your code and [/highlight] after your code.
    2. Give full details of errors and provide us with as much information about the situation as possible.
    3. Give us an example of what the output should look like when done correctly.

    Join the Airline Management Simulation Game to manage your own airline against other users in a virtual recreation of the United States Airline Industry. For more details, visit: http://airlinegame.orgfree.com/

  3. #3
    Junior Member
    Join Date
    Nov 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Looking for algorithm idea help

    Quote Originally Posted by aussiemcgr View Post
    Can you give an example of what it looks like when you start, what parts of that example you get, and what it should look like at the end?
    Here are a couple of examples:

    String: d ac2b1f3e4 ce5db ac3 71a24b
    Key: 123456789abcdef
    Hash: d0ac2b1f3e40ce5db0ac371a24b

    String: d ac2b1f3e4 ce5db ac3 71a24b
    Key: abcdef
    Hash: 38116765f7a4cb1fb192

    Then:
    Hash: 141205a0fc9314af2fcac1c7136823f422f1bfe645bb783376 aa8926e48e41118260ceaf4a424a6b0ec7eedfbafed298ffc6 43142c80c081b23cfdb59d741a44248db96e18819034a5f46f 4b4af5

    Key: 50nd4l)E16i28T3aC9L7DfcbeU(IBvtNAy

    String:?

    Thanks for looking

  4. #4
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,318
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: Looking for algorithm idea help

    I do not think what you wish to do is trivial, and I am curious as to why you wish to do it in the first place (I ask because things typically get hashed for a reason, and the first reason that comes to mind why one would wish to backwards engineer the hash function is to hack something).

  5. #5
    Banned
    Join Date
    May 2010
    Location
    North Central Illinois
    Posts
    1,631
    My Mood
    Sleepy
    Thanks
    390
    Thanked 112 Times in 110 Posts

    Question Re: Looking for algorithm idea help

    Quote Originally Posted by copeg View Post
    I do not think what you wish to do is trivial, and I am curious as to why you wish to do it in the first place (I ask because things typically get hashed for a reason, and the first reason that comes to mind why one would wish to backwards engineer the hash function is to hack something).
    Has anybody ever tried asking for help to hack something here before?

  6. #6
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,318
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: Looking for algorithm idea help

    Quote Originally Posted by javapenguin View Post
    Has anybody ever tried asking for help to hack something here before?
    Any hacker with their head on straight is not going to straight out admit it, but there are red flags that makes one wonder what the actual intent is (such as this). For all I know the original poster has a logical reason for wishing to generate an algorithm like this, which is why I asked.

Similar Threads

  1. final project idea
    By zulqar in forum AWT / Java Swing
    Replies: 4
    Last Post: November 3rd, 2010, 07:28 AM
  2. final project idea
    By zulqar in forum Java Theory & Questions
    Replies: 1
    Last Post: November 1st, 2010, 12:02 PM
  3. need idea for final year project
    By asadkhan in forum Java Applets
    Replies: 0
    Last Post: August 22nd, 2010, 01:36 AM
  4. why do so few people use intellij idea?
    By hamsterofdeath in forum Java IDEs
    Replies: 4
    Last Post: August 5th, 2010, 01:28 AM
  5. No idea what to do for this
    By jwb4291 in forum What's Wrong With My Code?
    Replies: 7
    Last Post: July 18th, 2010, 07:16 PM