A Hubot script to generate and save totp secret encrypted
npm i -S hubot-totp
Set environment variable TOTP_SECRET to encrypt secret.
add ["hubot-totp"]
to external-scripts.json
.
hubot totp new <name>
-> Generate a new totp secret
hubot totp qr <name>
-> Get qr image of totp secret
hubot totp hex <name>
-> Convert totp secret to hex
hubot totp insert <name> <secret>
-> Insert a totp secret
hubot totp secret <name>
-> Get totp secret
hubot totp get <name>
-> Get totp secret, hex and qr