/encryption

This Python script encrypts or decrypts files using a password-based key derivation function and the Fernet symmetric encryption algorithm.

Primary LanguagePythonApache License 2.0Apache-2.0

encryption

I use it to encrypt the mnemonic phrases of various cryptocurrencies.

Usage

encryption <encrypt/decrypt> <file_path> <password>

To use this script, run it from the command line with three arguments:

  1. encrypt or decrypt to specify the desired action.
  2. The path to the file you want to encrypt/decrypt.
  3. The password to use for encryption/decryption.

Example

Linux/Mac:

./encryption encrypt my-mnemonic-seed mypasswd
./encryption decrypt my-mnemonic-seed.encrypted mypasswd

Windows:

.\encryption.exe encrypt my-mnemonic-seed mypasswd
.\encryption.exe decrypt my-mnemonic-seed.encrypted mypasswd