# expect_decryptdir(1) - man - phpman

[CRYPTDIR(1)](https://www.chedong.com/phpMan.php/man/CRYPTDIR/1/markdown)                            General Commands Manual                           [CRYPTDIR(1)](https://www.chedong.com/phpMan.php/man/CRYPTDIR/1/markdown)



## NAME
       cryptdir - encrypt/decrypt all files in a directory

## SYNOPSIS
       **cryptdir** [ _dir_ ]
       **decryptdir** [ _dir_ ]

## INTRODUCTION
       **cryptdir**  encrypts  all files in the current directory (or the given directory if one is pro‐
       vided as an argument).  When called as decryptdir (i.e., same program, different  name),  all
       files are decrypted.


## NOTES
       When  encrypting,  you  are  prompted  twice for the password as a precautionary measure.  It
       would be a disaster to encrypt files a password that wasn't what you intended.

       In contrast, when decrypting, you are only prompted once.  If it's  the  wrong  password,  no
       harm done.

       Encrypted  files  have  the suffix .crypt appended.  This prevents files from being encrypted
       twice.  The suffix is removed upon decryption.  Thus, you can easily  add  files  to  an  en‐
       crypted directory and run cryptdir on it without worrying about the already encrypted files.

## BUGS
       The man page is longer than the program.


## SEE ALSO
       _"Exploring_  _Expect:_  _A_  _Tcl-Based_  _Toolkit_ _for_ _Automating_ _Interactive_ _Programs"_ by Don Libes,
       O'Reilly and Associates, January 1995.

## AUTHOR
       Don Libes, National Institute of Standards and Technology



                                           1 January 1993                                [CRYPTDIR(1)](https://www.chedong.com/phpMan.php/man/CRYPTDIR/1/markdown)
