We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
@vinaysagar, i'm getting the same digest as you for that test case. did you ever get confirmation that the official answer is correct? this is the only test case where the secret+data exceeds one MD5 data block. the official answer seems to assume 2 data blocks, whereas it would seem that 3 blocks are needed. i was able to get my program to "pass" by means of the ugly hack of imposing an arbitrary limit of 2 data blocks. i'm sure this isn't the right answer. i only did it as an experiment.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Hash Length Extension
You are viewing a single comment's thread. Return to all comments →
@vinaysagar, i'm getting the same digest as you for that test case. did you ever get confirmation that the official answer is correct? this is the only test case where the secret+data exceeds one MD5 data block. the official answer seems to assume 2 data blocks, whereas it would seem that 3 blocks are needed. i was able to get my program to "pass" by means of the ugly hack of imposing an arbitrary limit of 2 data blocks. i'm sure this isn't the right answer. i only did it as an experiment.