RFC Errata
RFC 6238, "TOTP: Time-Based One-Time Password Algorithm", May 2011
Source of RFC: IETF - NON WORKING GROUPArea Assignment: sec
Errata ID: 4530
Status: Reported
Type: Technical
Publication Format(s) : TEXT
Reported By: Simone Campagna
Date Reported: 2015-11-11
Section Appendix A says:
public static String generateTOTP(String key, String time, String returnDigits){ return generateTOTP(key, time, returnDigits, "HmacSHA1"); }
Notes:
Function will be recursive on his self. Maybe forget a second condition or statement?