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