(byte[] secret)
| 88 | /// Generates a TOTP code (RFC 6238) for the current system time, using |
| 89 | /// SHA-1, 6 digits and a 30-second step. |
| 90 | public static String totp(byte[] secret) { |
| 91 | return totp(secret, System.currentTimeMillis(), 30, 6, Hash.SHA1); |
| 92 | } |
| 93 | |
| 94 | /// Generates a TOTP code for the current system time with a custom digit |
| 95 | /// count and step size. |