James Bachini

AES

  • Encrypting Private Keys in .env

    Encrypting Private Keys in .env

    It has become very normalised to store Ethereum private keys in plain text within .env files. While this is convenient, it’s a disaster waiting to happen when working in production with wallets that contain real funds. Today, I’ll show you a better way to manage your hot wallet keys using AES encryption. Full code for…