Hi there,
Im trying to create a one time password generator for a phone. In the RFC2289 it specifies that i must fold the output of the MD5, i'm using bouncy castle MD5 and i cant work out how to fold the byte array output.
for (int i = 0; i < 8; i++) { md5[i] ^= md5[i+8]; }
This is what i have so far