Results 1 to 4 of 4
  1. #1
    Manfizy's Avatar
    Manfizy is offline Senior Member
    Join Date
    Nov 2008
    Location
    Germany
    Posts
    193
    Rep Power
    6

    Post Help in implementing XOR functions

    Hi guyz, i have an algorithm that i want to code in java. The algorith is as follows.
    MD5 ("1234567890123475e8dd316726b0335") = 8f 43 ae 1a 33 19 c6 49 cc 57 40 8b 6a 39 2d 6b

    8f xor 33 xor cc xor 6a =1a
    43 xor 19 xor 57 xor 39 =34
    ae xor c6 xor 40 xor 2d =05
    1a xor 49 xor 8b xor 6b =b3

    1a3405b3 and 1ffffff or 2000000 = 23405B3

    hex2dec (23405B3) = 36963763

    So far i am able to do the MD5 part and come up with the 32 characters. Now my problem comes when doing the XOR functions on the 32 hex characters.
    If you have noticed, from the first two characters, the next pick is done after every 6 characters and so on until the 32 characters are done.

    I hope have provided sufficient information for anyone to understand whats going on here.

    Any one with ideas on where i should start?

    Your views are highly appreciated
    We Learn Through Mistakes..,
    Manfizy:rolleyes:

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

  3. #3
    Manfizy's Avatar
    Manfizy is offline Senior Member
    Join Date
    Nov 2008
    Location
    Germany
    Posts
    193
    Rep Power
    6

    Default

    Quote Originally Posted by Eranga View Post
    What should be the fundamental to work on with XOR, or any other binary operation?
    OK am using this algorithm to calculate unlock code for a certain modem.
    having done the MD5 part which is used in cryptology, XOR operations are done on the hash string from the MD5.
    Basically, what am interested in for now is something like this:

    have 8f43ae1a3319c649cc57408b6a392d6b (which is in hex) in an array
    THEN
    xor functions performed for every 4 bytes
    We Learn Through Mistakes..,
    Manfizy:rolleyes:

  4. #4
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

Similar Threads

  1. JSP Functions
    By sysout in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 11-07-2009, 04:10 AM
  2. 2 functions
    By baze7 in forum New To Java
    Replies: 3
    Last Post: 08-14-2009, 04:41 AM
  3. Functions in jsp
    By samson in forum JavaServer Pages (JSP) and JSTL
    Replies: 3
    Last Post: 03-25-2009, 10:04 PM
  4. Button Functions
    By codeflip in forum New To Java
    Replies: 1
    Last Post: 03-12-2009, 02:26 AM
  5. problems with functions
    By kri in forum New To Java
    Replies: 6
    Last Post: 02-07-2009, 08:09 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •