summaryrefslogtreecommitdiffhomepage
path: root/src/prj/totp/basic-usage.sh.html
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-08-28 21:59:32 +0300
committerThomas Voss <mail@thomasvoss.com> 2023-08-28 21:59:32 +0300
commit1ed0137c7143a7f0f9f6257a082f64ed8c2b5961 (patch)
tree6d66b0b1cb9a1eb8bc489e8d46f8d838293fed5e /src/prj/totp/basic-usage.sh.html
parent406f609ee81ce0f32c1fe5536d645d4283dbcb22 (diff)
Add an article on ‘totp(1)’
Diffstat (limited to 'src/prj/totp/basic-usage.sh.html')
-rw-r--r--src/prj/totp/basic-usage.sh.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/prj/totp/basic-usage.sh.html b/src/prj/totp/basic-usage.sh.html
new file mode 100644
index 0000000..9023218
--- /dev/null
+++ b/src/prj/totp/basic-usage.sh.html
@@ -0,0 +1,7 @@
+$ <span class="sh-var">code</span>=<span class="sh-ex">`mkpass A-Z0-7`</span>
+$ <span class="sh-fn">totp</span> $<span class="sh-var">code</span>
+475867
+$ <span class="sh-fn">echo</span> $<span class="sh-var">code</span> | <span class="sh-fn">totp</span>
+475867
+$ <span class="sh-fn">totp</span> -d 10 $<span class="sh-var">code</span>
+0718732338