Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

cryptdir(1) [debian man page]

CRYPTDIR(1)                                                   General Commands Manual                                                  CRYPTDIR(1)

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 provided 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 with a pass- word 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 encrypted 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)

Check Out this Related Man Page

MKPASSWD(1)						      General Commands Manual						       MKPASSWD(1)

NAME
mkpasswd - generate new password, optionally apply it to a user SYNOPSIS
mkpasswd [ args ] [ user ] INTRODUCTION
mkpasswd generates passwords and can apply them automatically to users. mkpasswd is based on the code from Chapter 23 of the O'Reilly book "Exploring Expect". USAGE
With no arguments, mkpasswd returns a new password. mkpasswd With a user name, mkpasswd assigns a new password to the user. mkpasswd don The passwords are randomly generated according to the flags below. FLAGS
The -l flag defines the length of the password. The default is 9. The following example creates a 20 character password. mkpasswd -l 20 The -d flag defines the minimum number of digits that must be in the password. The default is 2. The following example creates a password with at least 3 digits. mkpasswd -d 3 The -c flag defines the minimum number of lowercase alphabetic characters that must be in the password. The default is 2. The -C flag defines the minimum number of uppercase alphabetic characters that must be in the password. The default is 2. The -s flag defines the minimum number of special characters that must be in the password. The default is 1. The -p flag names a program to set the password. By default, /etc/yppasswd is used if present, otherwise /bin/passwd is used. The -2 flag causes characters to be chosen so that they alternate between right and left hands (qwerty-style), making it harder for anyone watching passwords being entered. This can also make it easier for a password-guessing program. The -v flag causes the password-setting interaction to be visible. By default, it is suppressed. EXAMPLE
The following example creates a 15-character password that contains at least 3 digits and 5 uppercase characters. mkpasswd -l 15 -d 3 -C 5 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 mkpasswd is in the public domain. NIST and I would appreciate credit if this program or parts of it are used. 22 August 1994 MKPASSWD(1)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

executing encrypted files

Hi, Is there a way of executing encrypted files? I have encrpyted files using vi and crypt, but when I execute the encrypted file, it takes the contents literally (special characters, junk - encrpyted format). Kind Regards, Kawah (4 Replies)
Discussion started by: Kawah Cheung
4 Replies

2. UNIX for Dummies Questions & Answers

last 5 files

Hi, Is there a way that we can get the last files (ex, recent 5 files) that came into a directory. Thanks. (8 Replies)
Discussion started by: nguda
8 Replies

3. UNIX for Dummies Questions & Answers

encrypted files

Hi lads me again trying to get a wee bit fancy with my scripting anyway it dosn't seem to want to run (strange as it may seem) I encrypted a file renamed it and wrote another file that unencrypts it (it contains passwords) (and b4 anyone says I am doing this for my own reasons) In a... (3 Replies)
Discussion started by: w33man
3 Replies

4. UNIX for Dummies Questions & Answers

Question in unix

Hi, Can anyone plz tell me if i want to get a count of a word in bunch of files under a specific directory which are created only today. For example, There are almost 400 files under a log directory. From $Home/log directory, How do I get a count of a word "MAN" in the logs which are... (2 Replies)
Discussion started by: everurs
2 Replies

5. Shell Programming and Scripting

encrypt and decrypt password

how do i encrypt and decrypt a password (2 Replies)
Discussion started by: sanwish
2 Replies

6. UNIX for Advanced & Expert Users

encrypting files in ksh

I have an ascii file that I want to encrypt and save. I have seen this done before, but cannot remember how, nor can I find anything in any of my manuals or online help. Any ideas how to do this? Thanks, Henry (6 Replies)
Discussion started by: hwollman53
6 Replies

7. Programming

add a file.c in a program.

Hi I've written a new function for a program. I have the new_function.c, new_function.h and the new_function.o and I've added those 3 files in the same directory of the others files. Then in the file.c (that use the new_function.c), I added: #include "new_function.h" then i try to do: ... (2 Replies)
Discussion started by: Dedalus
2 Replies

8. Linux

Secured encrypted files via Linux

I need to encrypt a ".txt" file with password settings and it should decrypt the file automatoically when end user types correct password. Can some one help me on this. Thank you (3 Replies)
Discussion started by: rlmadhav
3 Replies

9. Shell Programming and Scripting

Ignoring file name case and decrypting it.

Dear Friends, I want to decrypt 2 different file types in a folder (ZIP files and GPG files). Each file type need different decryption syntex. Hence, the script should identify file type and should act accordingly ignoring file name case i.e. upper or lower case. Also, the extention can be... (6 Replies)
Discussion started by: anushree.a
6 Replies

10. Shell Programming and Scripting

files copy to dir

Hi, I have a directory which is having many files. I want to copy 10files at a time to another directory. For example. First 10 files to one directory, then next 10 files to another directory and so on. Please let me know if any work around there for it. Thanks (4 Replies)
Discussion started by: Anjan1
4 Replies

11. Shell Programming and Scripting

Don't display file name

Hi I have a directory where i have 10 -12 files, i want to store word count in seperate file without any file name. i have written the logic which needs to be corrected filename.txt for i in /backup/temp/rajesh/12Apr2012_South *.LOG do #echo "File size of $i is" wc -l $i... (5 Replies)
Discussion started by: guddu_12
5 Replies

12. Shell Programming and Scripting

Deleting particular files with a numerical suffix

Hello I have a directory with a list of files which have a particular numerical suffix. E.g filename_0 filename_1 filename_18500 filename_10000 I want to delete all files from this directory which have a filename which have a numerical suffix greater than 10540. So any files... (5 Replies)
Discussion started by: kamal_p_99
5 Replies

13. Shell Programming and Scripting

Private Key

I have two types of files pubring.pkr secring.skr secring.skr is encrypted and not able to read. How can i read secring.skr in text format after decrypting ? is there any way of decrypting this file? Unix HP - UX Version. (4 Replies)
Discussion started by: airesh
4 Replies

14. Shell Programming and Scripting

Deleting the files between particular dates

Hi Please help me for the below task. In my home directory if I run ls -l command, it lists all the files, here I want to delete files created from January 2014 to Aug 2014...but I need to keep the files which are created after September 01 2014. Thanks Siva (3 Replies)
Discussion started by: kumar85shiv
3 Replies

15. Shell Programming and Scripting

Find the original file size of encrypted file

Hi, I am trying to find out the original file size of an encrypted file in SunOS. The file was decrypted with gpg command. I want to know the size of the orginal file without decrypting it. I am using the below command, but it is not working for big files(more than 1 GB). gpg --passphrase... (4 Replies)
Discussion started by: vsachan
4 Replies