2010-04-13 01:02:09 +04:00
|
|
|
/* crypt - simple encryption algorithm used for passwords
|
|
|
|
*
|
|
|
|
* Copyright 2001 Dr. Zoidberg Enterprises. All rights reserved.
|
|
|
|
*/
|
2004-09-21 02:31:50 +04:00
|
|
|
#ifndef ZOIDBERG_CRYPT_H
|
|
|
|
#define ZOIDBERG_CRYPT_H
|
|
|
|
|
|
|
|
|
|
|
|
#define PASSWORD_LENGTH 32
|
|
|
|
|
|
|
|
|
|
|
|
char *get_passwd(BMessage *msg,const char *name);
|
|
|
|
bool set_passwd(BMessage *msg,const char *name,const char *password);
|
|
|
|
|
|
|
|
void passwd_crypt(char *in,char *out,int length);
|
|
|
|
|
|
|
|
#endif /* ZOIDBERG_CRYPT_H */
|