#ifndef FBCDigestPassword__H
#define FBCDigestPassword__H

#ifndef FBVersion
#define FBVersion 7
#elif FBVersion != 7
#error "The headers for FBCAccess version have been mixed"
#endif

#ifdef __cplusplus
extern "C" {
#endif
   
/*!
@function fbcDigestPassword
 @discussion Generates and returns a 16 byte string consisting of hexadecimal characters.  The string is a digested version of the user name and the clear text password.  The digested password is created via a lossy algorithm, i.e. it cannot be decrypted.  It is up to the caller to provide a result buffer that is min. 17 bytes long.
 */
char* fbcDigestPassword(const char* userName, const char* password, char* result);

#ifdef __cplusplus
}
#endif

#endif /* FBCDigestPassword__H */
