Time-based one-time password algorithm: Difference between revisions

m
→‎{{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="ecmascriptwren">import "os" for Process
import "./long" for ULong
import "./crypto" for Bytes, Sha1, Sha256, Hmac
Line 1,019:
<pre>
$ date '+%s'
1707913906
1638830494
$ wren-cli totpTime-based_one-time_password_algorithm.wren 16388304941707913906
260040
38559208
24454221
185760458
189816119
556237229
499920719
</pre>
 
9,483

edits