affcrypto [options] filename.aff [filename2.aff ... ]
DESCRIPTIONCommand for dealing with encryption issues.
This file is part of the AFFLIBv3, that provides AFF.
AFF is an open and extensible file format to store disk images and associated metadata. It is useful in several scenaries, as computer forensics investigations.
- Just print the number of encrypted segments.
- Just print the number of unencrypted segments.
- Output in XML.
Data conversion options:
- Encrypt the unencrypted non-signature segments.
- Decrypt the encrypted non-signature segments.
- Change passphrase (take old and new from stdin).
- -O <old>
- Specify an old passphrase.
- -N <new>
- Specify new passphrase.
- -K <mykey.key>
- Specifies a private keyfile for unsealing (may not be repeated).
- -C <mycert.crt>
- Specifies a certificate file for sealing (may be repeated).
- Add symmetric encryptiong (passphrase) to AFFILE encrypted with public key (requires a private key and a specified passphrase).
- Add asymmetric encryption to a AFFILE encrypted with a passphrase (requires a certificate file spcified with the -C option).
Password Cracking Options:
- -f <file>
- Crack passwords but read them from file.
- Attempt to crack passwords by reading a list of passwords from ~/.affpassphrase.
- -p <passphrase>
- Checks to see if passphrase is the passphrase of the file. Exit code is 0 if yes and -1 if not.
- debug; print out each key as it is tried.
- List the installed hash and encryption algorithms.
- Just print the version number and exit.
NOTESThis program ignores these environment variables:
EXAMPLEPrint if each file is encrypted or not:
$ affcrypto filename.aff filename2.aff