hckr crypto fernet¶
cryptography using fernet
hckr crypto fernet [OPTIONS] COMMAND [ARGS]...
decrypt¶
This command decrypts a TEXT message using Fernet key.
Example Usage:
Decrypt a message with given key file
$ hckr crypto fernet decrypt -m 'gAAAAABmdVJkaiK1gUihh-T3Z4-_p2qoy6v3NI7uITyXcsOow==' -k 'key.txt'
Command Reference:
hckr crypto fernet decrypt [OPTIONS]
Options
- -k, --key <key>¶
Required Path to the encryption key file.
- -m, --message <message>¶
Required Message to be decrypted
decrypt-file¶
This command decrypts a file PATH using Fernet key and generates output file
Example Usage:
Encrypt a file with given key file
$ hckr crypto fernet decrypt -f 'encrypted_message.txt' -k 'key.txt' -o 'output.txt'
Command Reference:
hckr crypto fernet decrypt-file [OPTIONS]
Options
- -k, --key <key>¶
Required Path to the encryption key file.
- -f, --file <file>¶
Required File to be decrypted
- -o, --output <output>¶
Required Output file containing decrypted file
encrypt¶
This command encrypts a TEXT message using Fernet key.
Example Usage:
Encrypt a message with given key file
$ hckr crypto fernet encrypt -m 'hello' -k 'key.txt'
Encrypt a message and create new key file
$ hckr crypto fernet encrypt -m 'hello' -k 'key.txt' -c
Command Reference:
hckr crypto fernet encrypt [OPTIONS]
Options
- -k, --key <key>¶
Required Path to the encryption key file.
- -m, --message <message>¶
Required message to be encrypted
- -c, --create-key¶
Flat to auto create key if key path doesn’t exists
encrypt-file¶
This command encrypts a file PATH using Fernet key and generates output file
Example Usage:
Encrypt a file with given key file
$ hckr crypto fernet encrypt -f 'message.txt' -k 'key.txt' -o 'output.txt'
Encrypt a file and create new key file
$ hckr crypto fernet encrypt -f 'message.txt' -k 'key.txt' -o 'output.txt' -c
Command Reference:
hckr crypto fernet encrypt-file [OPTIONS]
Options
- -k, --key <key>¶
Required Path to the encryption key file.
- -f, --file <file>¶
Required File to be encrypted
- -o, --output <output>¶
Required Output file containing encrypted file
- -c, --create-key¶
Flat to auto create key if key path doesn’t exists