affcrypto(1)

πŸ¦‹ affcrypto(1), handle encryption issues πŸ¦‹

✨ NAME ✨

okay so the NAME is literally just affcrypto - handle encryption issues πŸ’…

✨ SYNOPSIS ✨

affcrypto [options] filename.aff [filename2.aff ... ]

bestie, you toss in whatever options you want, then one or more .aff files 🧚

✨ DESCRIPTION ✨

affcrypto is a command for dealing with encryption issues. It's giving problem-solver energy πŸ”₯

This file is part of the AFFLIBv3 library, which provides AFF. 🌸

AFF is an open and extensible file format for storing disk images and their associated metadata. It's super useful in lots of scenarios, like computer forensics investigations πŸ•΅οΈ


✨ OPTIONS ✨

πŸŽ€ General options

  • -j β€” just prints the number of encrypted segments 🫢
  • -J β€” just prints the number of unencrypted segments 🫢
  • -x β€” outputs in XML πŸ’œ

πŸ“ Data conversion options

  • -e β€” encrypts the unencrypted non-signature segments πŸ”
  • -d β€” decrypts the encrypted non-signature segments πŸ”“
  • -r β€” changes the passphrase, taking the old and new ones from stdin πŸ”„
  • -O <old> β€” specifies an old passphrase πŸ—οΈ
  • -N <new> β€” specifies a new passphrase πŸ†•
  • -K <mykey.key> β€” specifies a private keyfile for unsealing. This one can't be repeated, so one and done 🚫
  • -C <mycert.crt> β€” specifies a certificate file for sealing. This one can be repeated, so go wild πŸ¦‹
  • -S β€” adds symmetric encryption (a passphrase) to an AFFILE that's already encrypted with a public key. You need a private key and a specified passphrase for this one πŸŽ€
  • -A β€” adds asymmetric encryption to an AFFILE that's already encrypted with a passphrase. You need a certificate file specified with the -C option for this one 🧚

🌈 Password Cracking Options

  • -f <file> β€” tries to crack passwords, but reads them from the file you give it πŸ“‚
  • -k β€” tries to crack passwords by reading a list of passwords from ~/.affpassphrase πŸ”‘
  • -p <passphrase> β€” checks whether the passphrase is the file's passphrase. Exit code is 0 if yes and -1 if not πŸ‘‘

πŸ› Debugging

  • -D β€” debug mode! It prints out each key as it's tried πŸ‘€
  • -l β€” lists the installed hash and encryption algorithms ✨
  • -V β€” just prints the version number and exits πŸ’…

✨ NOTES ✨

πŸ™ˆ heads up: this program straight up ignores these environment variables, so don't count on them:
  • AFFLIB_PASSPHRASE
  • AFFLIB_PASSPHRASE_FILE
  • AFFLIB_PASSPHRASE_FD
  • AFFLIB_DECRYPTING_PRIVATE_KEYFILE

✨ EXAMPLE ✨

wanna see if each file is encrypted or not? Just run:

$ affcrypto filename.aff filename2.aff

✨ SEE ALSO ✨

the whole squad 🌸 affcat(1), affcompare(1), affconvert(1), affcopy(1), affdiskprint(1), affinfo(1), affix(1), affrecover(1), affsegment(1), affsign(1), affstats(1), affuse(1), affverify(1), affxml(1)


✨ AUTHOR ✨

the AFFLIB was written by Simson L. Garfinkel <simsong@acm.org> and Basis Technology, Inc. πŸ‘‘

this manual page was written by Joao Eriberto Mota Filho <eriberto@debian.org> for the Debian project (but it may be used by others) 🫢


Till next time, bestie πŸ’– this was AFFCRYPTO 3.7.4 from Oct 2014, straight from the affcrypto(1) vault. Vintage and iconic 🧚✨

πŸ“¦ where this page comes from