CRYPTDIR(1)
π CRYPTDIR(1) β the cryptdir manual, but make it make sense π
okay bestie, this is the man page for cryptdir, living in the General Commands Manual section of your local docs. buckle up, it's short and it's iconic. β¨
π NAME π
cryptdir β literally just encrypt/decrypt every single file in a directory. that's it. that's the job. π
π¦ SYNOPSIS π¦
cryptdir [ dir ]
decryptdir [ dir ]
πΈ INTRODUCTION πΈ
so here's the vibe: cryptdir encrypts all the files in the current directory. and if you hand it a directory as an argument? it does that directory instead. slay. π«Ά
now the plot twist β if you call the program as decryptdir (same exact program, just a different name, iykyk), then instead of encrypting, it decrypts everything. one binary, two moods. π
β¨ NOTES β¨
- when you're ENCRYPTING: it asks you for the password twice. not to be annoying, but as a precautionary measure β because encrypting your files with a password that wasn't the one you actually meant is, and I cannot stress this enough, a disaster. π
- when you're DECRYPTING, though? only one prompt. because if it's the wrong password, likeβ¦ no harm done. we move. π§
- encrypted files get the suffix
.cryptappended to them. this is on purpose β it stops a file from getting encrypted twice. when you decrypt, that suffix gets removed. so you can just keep dumping new files into an encrypted directory and runcryptdiron it again without ever worrying about the already-encrypted files. main character energy, honestly. π
π BUGS π
the man page is longer than the program. π not me exposing myself like that. π
π SEE ALSO π
"Exploring Expect: A Tcl-Based Toolkit for Automating Interactive Programs" by Don Libes, O'Reilly and Associates, January 1995. go read it bestie, it's giving foundational. π
π AUTHOR π
Don Libes, National Institute of Standards and Technology π«‘
and that's the whole page, fr fr. this little cutie shipped on 1 January 1993 as part of the cryptdir source/version, and honestly? it ate. periodt. πβ¨ππ¦πΈπ
π¦ where this page comes from
- debian bookworm: expect 5.45.4-2+b1
- debian trixie: expect 5.45.4-4
- ubuntu jammy: expect 5.45.4-2build1
- ubuntu noble: expect 5.45.4-3
- ubuntu questing: expect 5.45.4-4
- ubuntu resolute: expect 5.45.4-4build1
- ubuntu stonking: expect 5.45.4-8
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms