totp[-docs]: change default totp-hash value to SHA-1

SHA-1 is the hash used by the Google Authenticator application, which this
vocab wanted to imitate in the first place.
master
Alexander Iljin 2020-07-29 18:35:25 +02:00 committed by John Benediktsson
parent 27d38225f4
commit 92b7c32e19
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ $nl
HELP: totp-hash
{ $var-description "A cryptographically secure " { $link checksum } " to be used by " { $link totp } " for the HMAC. See " { $url "https://en.wikipedia.org/wiki/HMAC" } " for more information."
$nl
"Default value is " { $link sha-256 } "." } ;
"Default value is " { $link sha1 } ", same as used by Google Authenticator." } ;
HELP: totp-digits
{ $var-description "The number of digits returned by " { $link totp } "."

View File

@ -5,7 +5,7 @@ math math.bitwise math.parser namespaces sequences ;
IN: totp
SYMBOLS: totp-hash totp-digits ;
totp-hash [ sha-256 ] initialize
totp-hash [ sha1 ] initialize
totp-digits [ 6 ] initialize
<PRIVATE