Rudiments
/home/dmuse/src/rudiments/include/rudiments/crypt.h
00001 // Copyright (c) 2004 David Muse
00002 // See the COPYING file for more information.
00003 
00004 #ifndef RUDIMENTS_CRYPT_H
00005 #define RUDIMENTS_CRYPT_H
00006 
00007 #include <rudiments/private/cryptincludes.h>
00008 
00009 #ifdef RUDIMENTS_NAMESPACE
00010 namespace rudiments {
00011 #endif
00012 
00015 class RUDIMENTS_DLLSPEC crypt {
00016         public:
00017 
00028                 static char     *encrypt(const char *password,
00029                                                 const char *salt);
00030 
00037                 static  bool    needsMutex();
00038 
00042                 static  void    setMutex(mutex *mtx);
00043 
00044         #include <rudiments/private/crypt.h>
00045 };
00046 
00047 #ifdef RUDIMENTS_NAMESPACE
00048 }
00049 #endif
00050 
00051 #endif