Time-based one-time password algorithm: Difference between revisions
Time-based one-time password algorithm (view source)
Revision as of 12:34, 14 February 2024
, 5 months ago→{{header|Wren}}: Minor tidy and rerun
imported>LdB (Add implementation in J) |
m (→{{header|Wren}}: Minor tidy and rerun) |
||
Line 937:
{{libheader|Wren-srandom}}
As Wren-cli currently has no way of determining the Unix time, this needs to be input as a command line parameter so we can track it from there.
<syntaxhighlight lang="
import "./long" for ULong
import "./crypto" for Bytes, Sha1, Sha256, Hmac
Line 1,019:
<pre>
$ date '+%s'
1707913906
$ wren-cli
260040
38559208
185760458
556237229
</pre>
|