Apr 15, 2002 #1 pjb Programmer May 1, 2001 148 US Is ther a way in unix for a file to be encrypted where a password must be supplied to make it readable?
Is ther a way in unix for a file to be encrypted where a password must be supplied to make it readable?
Apr 15, 2002 #2 olded Programmer Oct 27, 1998 1,065 US pjb: Depends on the unix flavor you're using. Check out the crypt command, encode or decode a file. My Solaris 7 has it. I'd check out gnu.org. I'll be they have it. Regards, Ed Upvote 0 Downvote
pjb: Depends on the unix flavor you're using. Check out the crypt command, encode or decode a file. My Solaris 7 has it. I'd check out gnu.org. I'll be they have it. Regards, Ed
Apr 16, 2002 #3 bigoldbulldog Programmer Feb 26, 2002 286 US If you have the crypt command then try these... cat file | crypt > file.x crypt < file > file.x You will be prompted for the password for encryption to the new file name. Just delete, change rights, etc.. for the source file. crypt < file.x crypt < file.x > file Will prompt for the password to de-encrypt or crypt password < file.x works too but someone could spot your password with the ps command. vi -x file.x works too by prompting for the password as well. Cheers, ND Upvote 0 Downvote
If you have the crypt command then try these... cat file | crypt > file.x crypt < file > file.x You will be prompted for the password for encryption to the new file name. Just delete, change rights, etc.. for the source file. crypt < file.x crypt < file.x > file Will prompt for the password to de-encrypt or crypt password < file.x works too but someone could spot your password with the ps command. vi -x file.x works too by prompting for the password as well. Cheers, ND