1 #ifndef ZOIDBERG_CRYPT_H 2 #define ZOIDBERG_CRYPT_H 3 /* crypt - simple encryption algorithm used for passwords 4 ** 5 ** Copyright 2001 Dr. Zoidberg Enterprises. All rights reserved. 6 */ 7 8 9 #define PASSWORD_LENGTH 32 10 11 12 char *get_passwd(BMessage *msg,const char *name); 13 bool set_passwd(BMessage *msg,const char *name,const char *password); 14 15 void passwd_crypt(char *in,char *out,int length); 16 17 #endif /* ZOIDBERG_CRYPT_H */ 18