If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > Question about crypt command

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-31-03, 04:07
UNIXman UNIXman is offline
Registered User
 
Join Date: Jan 2003
Posts: 1
Question Question about crypt command

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
Reply With Quote
  #2 (permalink)  
Old 02-04-03, 12:20
WingMan WingMan is offline
Registered User
 
Join Date: Aug 2002
Location: UK
Posts: 87
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 ....
Code:
$cd /
$find . -name "crypt" -print
Reply With Quote
  #3 (permalink)  
Old 02-09-03, 21:29
sco08y sco08y is offline
Registered User
 
Join Date: Oct 2002
Location: Baghdad, Iraq
Posts: 697
Re: Question about crypt command

Quote:
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/
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On