what's with encrypt()

what's with encrypt()

Post by Kenn Martine » Tue, 13 Aug 1996 04:00:00



Hi,

 I am a bit confused as to how the des encryption routines are used
under Solaris.
I am basically looking for a function(s) that will encrypt and decrypt
a string. The man page for crypt(3C) has the following SYNOPSIS:

     #include <crypt.h>

     char *crypt(const char *key, const char *salt);

     void setkey(const char *key);

     void encrypt(char *block, int edflag);

 I have been able to use the encrypt function to hide the original
string, but I don't seem to be able to find the function that will work
to reverse it. I've tried using the encrypt() function with different
edflags to no avail.

 The wording of the man page gets a little weird but it seems to
indicate that another "version" of the command should be available under
crypt(3x) which we don't seem to have. I really don't know where else to
look.

 Any help will be greatly appreciated. Please respond directly to:


thank you in advance,

Kenn Martinez

 
 
 

what's with encrypt()

Post by Casper H.S. Dik - Network Security Engine » Wed, 14 Aug 1996 04:00:00



> I am a bit confused as to how the des encryption routines are used
>under Solaris.
>I am basically looking for a function(s) that will encrypt and decrypt
>a string. The man page for crypt(3C) has the following SYNOPSIS:
>     #include <crypt.h>
>     char *crypt(const char *key, const char *salt);
>     void setkey(const char *key);
>     void encrypt(char *block, int edflag);
> I have been able to use the encrypt function to hide the original
>string, but I don't seem to be able to find the function that will work
>to reverse it. I've tried using the encrypt() function with different
>edflags to no avail.

Yep, that's the export version of crypt(3c)

You can crypt, but you can't decrypt.

You'll need to get the Encryption kit (US (&Canada?) only)
and you'll get the decryption stuff you want.

Casper
--
Expressed in this posting are my opinions.  They are in no way related
to opinions held by my employer, Sun Microsystems.
Unsolicited e-mail adverti*ts send to my address will be proofread
for a $250 flat fee.