[comp.lang.c] Decoding using crypt function

sheila@mobydick.leis.bellcore.com (Sheila Amos) (03/12/91)

Keywords: Crypt ,encrypt C functions



I'm having problems using the crypt function.  I want to encode a password,
but I also want to be able to decode it as well at a later time.  I've tried
the crypt command and encoding seems to work fine.  The problem comes about
when I try the cryp command with the encoded password as the key.  I've also
tried the encrypt command. However with encrypt, the encoded password seems
only to be the original password with the characters switch around.  Any solutions would be greatly appreciated.