Post
Topic
Board Bitcoin Discussion
Re: The Legend of Satoshi Nakamato, FINAL STEP PUBLISHED.... 4.87 BTC GRAND PRIZE!
by
RealOnTheMF
on 07/01/2018, 03:58:43 UTC
You're missing the modulus operation. It's kind of hidden in a single line of code.

Matlab version:
Code:
message_indices = mod((0:(length(decrypted_track)-1)) * 5, length(decrypted_track)) + 1;

Equivalent in C/C++/Java would be:
Code:
for (int i = 0; i < n; i++)
    data[i] = orig_data[i * 5 % n];