Skip to content

pau/htpasswd-totp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Time Based One Time HTTP Basic Authentication

Example

Generate user and pass secret keys.

make-totp-secret > /var/tmp/user.secret
make-totp-secret > /var/tmp/pass.secret

Print QR code in terminal.

cat /var/tmp/user.secret | qr
cat /var/tmp/pass.secret | qr

Generate htpasswd file.

make-totp-htpasswd /var/tmp/user.secret /var/tmp/pass.secret /var/tmp/htpasswd

Cron job to re-generate htpasswd file every minute.

*/1 * * * * www-data make-totp-htpasswd /var/tmp/user.secret /var/tmp/pass.secret /var/tmp/htpasswd

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages