abcrypt-decrypt(1)
NAME
abcrypt-decrypt - decrypt files
DESCRIPTION
This command decrypts FILE. By default, the result will be write to standard output. If FILE is not specified, data will be read from standard input. If -o is specified, the result will be write to the specified file.
The passphrase used for decryption can be read from either /dev/tty
, standard
input, an environment variable, or a file.
abcrypt dec and abcrypt d are aliases for this command.
POSITIONAL ARGUMENTS
- FILE
Input file. If FILE is not specified, data will be read from standard input.
OPTIONS
- -o, --output FILE
Output the result to a file.
- --passphrase-from-tty
Read the passphrase from
/dev/tty
. This is the default behavior.- --passphrase-from-stdin
Read the passphrase from standard input. This option cannot be used if FILE is also standard input.
- --passphrase-from-env VAR
Read the passphrase from the environment variable. Note that storing a passphrase in an environment variable can be a security risk.
- --passphrase-from-file FILE
Read the passphrase from the file. Note that storing a passphrase in a file can be a security risk.
- -v, --verbose
Print the encryption parameters.
- -h, --help
Print help message. The short flag (-h) will print a condensed help message while the long flag (--help) will print a detailed help message.
- -V, --version
Print version number. The long flag (--version) will also print the copyright notice, the license notice and where to report bugs.
EXIT STATUS
- 0
Successful program execution.
- 1
An error occurred.
- 2
An error occurred while parsing command-line arguments.
- 65
The input data was incorrect in some way.
- 66
An input file (not a system file) did not exist or was not readable.
- 69
A service is unavailable.
- 70
An internal software error has been detected.
- 71
An operating system error has been detected.
- 73
A (user specified) output file cannot be created.
- 74
An error occurred while doing I/O on some file.
- 75
Temporary failure, indicating something that is not really an error.
- 76
The remote system returned something that was "not possible" during a protocol exchange.
- 77
You did not have sufficient permission to perform the operation.
EXAMPLES
- Decrypt a file:
$ abcrypt decrypt data.txt.abcrypt > data.txt
- Output the result to the specified file:
$ abcrypt decrypt -o data.txt data.txt.abcrypt
- Read the passphrase from the file:
$ abcrypt decrypt --passphrase-from-file passphrase.txt data.txt.abcrypt > data.txt
- Print the encryption parameters when decrypting:
$ abcrypt decrypt -v data.txt.abcrypt > data.txt
COPYRIGHT
Copyright © 2022-2024 Shun Sakai
This program is distributed under the terms of the GNU General Public License v3.0 or later.
This manual page is distributed under the terms of the Creative Commons Attribution 4.0 International Public License.
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.