CRYPTDIR(1)

๐Ÿ“ฆ
version 5.45.4 ยท 2 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, debian bookworm, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu jammy

๐ŸŽ€ cryptdir: your directoryโ€™s crypt bestie ๐ŸŽ€

okay so real talk: this is the CRYPTDIR(1) page, and itโ€™s about one little program doing a big job โ€” encrypting or decrypting all files in a directory. Itโ€™s giving โ€œtiny utility, main character energyโ€ ๐Ÿ’…โœจ


๐Ÿท๏ธ NAME ๐Ÿท๏ธ

cryptdir โ€” encrypt/decrypt all files in a directory ๐Ÿ’–


โœจ SYNOPSIS โœจ

cryptdir [ dir ]
decryptdir [ dir ]

๐ŸŒธ INTRODUCTION ๐ŸŒธ

So hereโ€™s the vibe: cryptdir encrypts all files in the current directory. If you hand it a directory as an argument โ€” thatโ€™s the optional dir โ€” it does the same thing there instead. ๐Ÿ’ซ

And when you call it as decryptdir? Same program, different name, bestie. Literally the same binary wearing a little name tag, and this time it decrypts all the files. ๐Ÿซถ


๐Ÿ’… NOTES ๐Ÿ’…

  • When youโ€™re encrypting, it prompts you for the password twice as a precautionary measure. Thatโ€™s not it being extra for no reason โ€” it would be a whole disaster to encrypt files with a password that wasnโ€™t what you intended ๐Ÿ˜ญ๐Ÿ”
  • When youโ€™re decrypting, it only prompts you once. If itโ€™s the wrong password, no harm done. Chill behaviour, honestly. ๐ŸงŠ
  • Encrypted files get the suffix .crypt appended. This prevents files from being encrypted twice. The suffix is removed upon decryption. ๐Ÿ‘‘
  • So likeโ€ฆ you can easily add files to an encrypted directory and run cryptdir on it without worrying about the already encrypted files. Slay. No cap. โœจ

๐Ÿ’€ BUGS ๐Ÿ’€

The man page is longer than the program. Thatโ€™s it. Thatโ€™s the bug. ๐Ÿ’€๐Ÿ˜ญ


๐Ÿ‘€ SEE ALSO ๐Ÿ‘€

"Exploring Expect: A Tcl-Based Toolkit for Automating Interactive Programs" by Don Libes, Oโ€™Reilly and Associates, January 1995. Go read the iconโ€™s book, bestie ๐Ÿ“š๐Ÿ’–


๐Ÿ‘‘ AUTHOR ๐Ÿ‘‘

Don Libes, National Institute of Standards and Technology ๐Ÿซถ


mwah ๐Ÿ’‹ โ€” this was the 1 January 1993 edition of CRYPTDIR(1) from the General Commands Manual, and yes, she ate ๐ŸŒˆโœจ