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
parent
27d38225f4
commit
92b7c32e19
|
@ -22,7 +22,7 @@ $nl
|
||||||
HELP: totp-hash
|
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."
|
{ $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
|
$nl
|
||||||
"Default value is " { $link sha-256 } "." } ;
|
"Default value is " { $link sha1 } ", same as used by Google Authenticator." } ;
|
||||||
|
|
||||||
HELP: totp-digits
|
HELP: totp-digits
|
||||||
{ $var-description "The number of digits returned by " { $link totp } "."
|
{ $var-description "The number of digits returned by " { $link totp } "."
|
||||||
|
|
|
@ -5,7 +5,7 @@ math math.bitwise math.parser namespaces sequences ;
|
||||||
IN: totp
|
IN: totp
|
||||||
|
|
||||||
SYMBOLS: totp-hash totp-digits ;
|
SYMBOLS: totp-hash totp-digits ;
|
||||||
totp-hash [ sha-256 ] initialize
|
totp-hash [ sha1 ] initialize
|
||||||
totp-digits [ 6 ] initialize
|
totp-digits [ 6 ] initialize
|
||||||
|
|
||||||
<PRIVATE
|
<PRIVATE
|
||||||
|
|
Loading…
Reference in New Issue