ENCRYPT - encrypt or decrypt message.

(Compatible with UNIX System V C)

Usage:

void encrypt(message,flag);

Where:

char message[64];
is a 64 character array. Array elements may only be the ASCII characters '\0' or '\1'.
int flag;
is zero if the message is to be encrypted, and non-zero if the message is to be decrypted.

Description:

"encrypt"is used to encrypt and decrypt "message" using the NBS Data Encryption Standard (DES) algorithm.

You must set an encryption key with the "setkey" function before calling "encrypt". The encrypted or decrypted result of "encrypt" is written over the "message" array. This result also consists only of the ASCII characters '\0' and '\1'.

See Also:

expl c lib crypt

expl c lib setkey

Copyright © 1996, Thinkage Ltd.