Skip to content

Commit 23216db

Browse files
committed
ddoc
1 parent 0a8d385 commit 23216db

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: source/gauthenticator.d

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import std.format : format;
2727

2828
// code adapted from https://github.com/tilaklodha/google-authenticator
2929

30-
// HMAC-based One Time Password(HOTP)
30+
/// HMAC-based One Time Password(HOTP)
3131
public string getHOTPToken(const string secret, const ulong interval)
3232
{
3333
//secret is a base32 encoded string. Converts to a byte array
@@ -48,7 +48,7 @@ public string getHOTPToken(const string secret, const ulong interval)
4848
return format("%06d",h12);
4949
}
5050

51-
//Time-based One Time Password(TOTP)
51+
/// Time-based One Time Password(TOTP)
5252
public string getTOTPToken(const string secret)
5353
{
5454
//The TOTP token is just a HOTP token seeded with every 30 seconds.
@@ -57,7 +57,7 @@ public string getTOTPToken(const string secret)
5757
return getHOTPToken(secret, interval);
5858
}
5959

60-
//RFC 4648
60+
//RFC 4648 base32 implementation
6161
private ubyte[] base32decode(const string message)
6262
{
6363
int buffer = 0;

0 commit comments

Comments
 (0)