How do I create a one-time password generator for a phone?

1145515 pts.
Tags:
Authentication
Java
Password
Over the past few weeks, I've been trying to make a one-time password generator for a phone. In the RFC2289, it says I must fold the output of the MD5. I've been using bouncy castle MD5 and I'm having issues on how to fold the byte array output. Here's what I have so far:
for (int i = 0; i < 8; i++)
{
    md5[i] ^= md5[i+8];
}
I would appreciate the help.
0

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: