Simple way to protect your private keys and google auth codes

in authentication •  7 years ago  (edited)

free-encryption.jpg

I had to figure this out the hard way, but if you decide to use google's authentication for 2 factor authentication and your phone decides to crap-out you might be out of luck. Expect to wait countless hours to verify your identity and get those codes reset by support.

Instead what you can you is store the seed/key for the 2 factor authentication in plain text, and encrypt it with a passphrase. This way, if your phone gets reset you can just go back to your file and restore the 2FA code from the seed.

If you're in linux this is pretty easy...All you have to to is:

  1. Create a file with all the 2FA seed/keys you need.
  2. Encrypt the file with openssl:
    openssl aes-256-cbc -salt -e -a -in keys.txt -out keys.enc
  3. Destroy the original text file: shread -n 10 keys.txt
  4. Decrypt the file openssl aes-256-cbc -d -a -in keys.enc -out keys.enc.txt
    Restore the 2FA codes, and then:
  5. Destroy the text file: shread -n 10 keys.enc.txt
Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

yes, backup!

It is really helpful to secure your account.

Thank you for this. I am always worried about losing my phone or something happening. I will do this, Great Post! I am going to resteem so all can learn. Thanks again.

is nice thanks

good post

upvoted

Thanks @ethminer45 sharing this type of information. wish you the best

This is very useful!! Thank you for sharing!

Thank you

Thanks for the helpful info. hopefully you found this out before you built up a large balance. That would suck to lose everything you worked for lol resteem follow and upvote. feel free to do the same! wish you the best!

Great Post... Thanks a lot

Congratulations @ethminer45, this post is the second most rewarded post (based on pending payouts) in the last 12 hours written by a Newbie account holder (accounts that hold between 0.01 and 0.1 Mega Vests). The total number of posts by newbie account holders during this period was 2273 and the total pending payments to posts in this category was $740.65. To see the full list of highest paid posts across all accounts categories, click here.

If you do not wish to receive these messages in future, please reply stop to this comment.

Congratulations, your post received one of the top 10 most powerful upvotes in the last 12 hours. You received an upvote from @blocktrades valued at 79.98 SBD, based on the pending payout at the time the data was extracted.

If you do not wish to receive these messages in future, reply with the word "stop".

THANK YOU!

Congratulations @ethminer45! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

Award for the number of upvotes received

Click on any badge to view your own Board of Honor on SteemitBoard.
For more information about SteemitBoard, click here

If you no longer want to receive notifications, reply to this comment with the word STOP

By upvoting this notification, you can help all Steemit users. Learn how here!

Thanks for You helpfull Post @ethminer45

I generally take the print out of the seed key and keep printouts at safe place..!

That's very prone to getting lost, with this method you can make multiple copies of the encrypted file and put in in multiple devices.

thanks a lot for this trick....