Skip to content

Application to safely and locally store backup codes for two factor authenticated services

License

Notifications You must be signed in to change notification settings

narbux/twofabackup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TwoFaBackup

Application to safely and locally store backup codes for two factor authenticated services. It is good pracice to store these codes in an other location than in e.g. the password manager that stores the first factor or in the authenticator app that generates the one time passwords.

The backup is locally stored in a sqlite database with symmetric Fermet encryption. The sqlite database stores a id, service name, description [optional], the backupcodes [encrypted], date added. A new encryption key will be generated when first codes are saved in the db. The location of the database is $HOME/.config/2FA_codes.db.

!! Do not lose the generated key, or your codes will be lost !!

Main help

$ twofabackup ---help
usage: twofabackup [-h] [-v] {add} ...

Encrypted 2FA backup codes storage

positional arguments:
  {add}          Add new backupcodes from a text file or stdin

options:
  -h, --help     show this help message and exit
  -v, --version  show program's version number and exit

Add codes help

$ twofabackup add --help
usage: twofabackup add [-h] [-f FILE] -n NAME [-d DESCRIPTION]

options:
  -h, --help            show this help message and exit
  -f FILE, --file FILE  Text file with backupcodes
  -n NAME, --name NAME  Name of the service
  -d DESCRIPTION, --description DESCRIPTION
                        Optional description of service

About

Application to safely and locally store backup codes for two factor authenticated services

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages