# Tools

## Tasks
* Export data from `twofat` to URIs: `twofat export twofat.url`
* Convert URIs to JSON with `otpauth2json`: `otpauth2json twofat.url >twofat.json`
* Convert JSON to Encrypted Aegis JSON: Import into Aegis, save as encrypted Aegis json
* Convert Encrypted Aegis JSON to KeePass2 (4.0) KDBX: atk
  - https://github.com/GeKorm/atk
  - https://github.com/graynk/atk
* Read KDBX4: https://github.com/makovich/kp
* Read kdbx3.1 (KeePassX/kdbxviewer): https://github.com/sru-systems/rust-kpdb
* Read kdbx various versions: https://github.com/sseemayer/keepass-rs
* Convert otpauth URI file to Encrypted Aegis Vault JSON: aegisvault
* Import URI file into optclient[-cli], export to encrypted Aegis:
```
twofat export twofat.uri
#cp otpclient.empty.enc otpclient.enc  # Not needed for latest optclient-cli 
otpclient-cli --import -t freeotpplus_plain -f twofat.uri -d otpclient.enc
otpclient-cli --export -t aegis_encrypted -d otpclient.enc -o .
```
