in reply to Weird crypt Behavior
That should be fine. It produces "uv1o844x44bz." using 5.6.1 on Solaris 8.
First, I'd try with a two character salt (though, that shouldn't make a difference.)
Secondly, I'd try a minimal C program to be sure it works as expected:
int main () { char *salt = "uv"; char *pass = "abcdef"; printf("%s\n", crypt(pass, salt)); }
You say that it "has worked flawlessly in the past (and continues to work on a remote host)" so I have to ask: has anything changed recently on the box it is failing on?
-sauoq "My two cents aren't worth a dime.";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Weird crypt Behavior
by Dr. Mu (Hermit) on Sep 17, 2002 at 21:00 UTC | |
by gsar (Acolyte) on Sep 17, 2002 at 21:21 UTC | |
by Flexx (Pilgrim) on Sep 18, 2002 at 20:20 UTC |