Metadata-Version: 2.1
Name: twofabackup
Version: 1.0.0
Summary: Application to safely and locally store backup codes for two factor authenticated services
Home-page: https://github.com/narbux/twofabackup
License: GPL-3.0-or-later
Author: Marnix Enthoven
Author-email: 26323484+narbux@users.noreply.github.com
Requires-Python: >=3.11,<4.0
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: System :: Archiving :: Backup
Classifier: Topic :: Utilities
Requires-Dist: cryptography (>=41.0.7,<42.0.0)
Requires-Dist: pydantic (>=2.5.3,<3.0.0)
Requires-Dist: rich (>=13.7.0,<14.0.0)
Project-URL: Repository, https://github.com/narbux/twofabackup
Description-Content-Type: text/markdown

# 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.

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

### Main help

```python
$ twofabackup ---help
usage: twofabackup [-h] [-v] [-d DATABASE] {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
  -d DATABASE, --database DATABASE
                        Location of database to use, [$HOME/.config/2FA_codes.db]
```

### Add codes help

```python
$ 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
```

