alexzorin / authy

Go library and program to access your Authy TOTP secrets.
MIT License
802 stars 57 forks source link

Add support for saving and reloading encrypted backup file #26

Closed cyril42e closed 1 year ago

cyril42e commented 1 year ago

Thanks for this great tool, I wanted to use this code to keep encrypted backup files of my tokens, so I made some modifications and then tried to make them clean so that it can be useful to others:

Added two command line arguments (with default values the behavior is unchanged):

I'll add some documentation if you are ok with merging this. I would advise to "hide whitespace" in the "diff view" for the review, as most of the changes are indented lines that are now in if blocks.

It's my first time reading or writing Go, so don't hesitate to advise improvements!