passwd2des(3) - Linux man page
Name
xencrypt, xdecrypt, passwd2des - RFS password encryptionSynopsis
#include <rpc/des_crypt.h>void passwd2des(char *passwd, char *key);
int xencrypt(char *secret, char *passwd);
int xdecrypt(char *secret, char *passwd);
Description
The xencrypt() function takes the ASCII character string secret given in hex, which must have a length that is a multiple of 16, encrypts it using the DES key derived from passwd by passwd2des(), and outputs the result again in secret as a hex string of the same length.
The xdecrypt() function performs the converse operation.