This script encrypts and decrypts keys. Might come in handy for scripts and automation. The idea is to encrypt keys and keep ids of encrypted object, encrypted objects JSON and password separately. For example, you can operate with ids in any sheet or text file. JSON object could be stored on a USB flash drive. Once you need to decrypt some keys you can insert USB flash drive into your machine and decrypt keys on the go.
- Install
eth_account
andjson
in any environment you prefer. - Put your keys in
keys.txt
. - Run the sript with
encrypt()
mode. - Clear
keys.txt
. - Store
vault.json
on a USB flash drive. You might want to update the path to the file indectypt()
fucntion. - Use identifiers from
ids.txt
anywhere you like with no fear of being hacked.