PDA

View Full Version : Question about crypt command


UNIXman
01-31-03, 05:07
Hi all ..
i'm a new member here ..
and i have a question about crypt command
how can i write it??
i used this form :
crypt [password] < file1 > file2
but the result was : Command not found !

How can i use it to Encrypt my files
Thnanx

WingMan
02-04-03, 13:20
This has to be installed and an alias set up for your use.
On Solaris it should be located in /usr/bin/

Try running this code to find it on your box ....

$cd /
$find . -name "crypt" -print

sco08y
02-09-03, 22:29
Originally posted by UNIXman
Hi all ..
i'm a new member here ..
and i have a question about crypt command
how can i write it??
i used this form :
crypt [password] < file1 > file2
but the result was : Command not found !

How can i use it to Encrypt my files
Thnanx

Simple: don't. Check to see if you have the openssl command installed.

If it's properly installed, you should be able to type "man enc" to get the parameters to "openssl enc".

For most stuff, you can use the Blowfish symmetric algorithm, it's very good.

From the examples:

openssl bf -e -a -salt -in file.txt -out file.bf

And to decrypt:

openssl bf -d -a -salt -in file.bf -out file.txt

Definitely poke around the man pages of openssl. It's a very complete set of utilities for encryption and digital signing. http://www.openssl.org/