00001 // Filename: password_hash.h 00002 // Created by: drose (01Sep04) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 #ifndef PASSWORD_HASH_H 00016 #define PASSWORD_HASH_H 00017 00018 #include "pandabase.h" 00019 00020 // The functions defined within this file rely on algorithms defined 00021 // within OpenSSL. 00022 #ifdef HAVE_OPENSSL 00023 00024 BEGIN_PUBLISH 00025 00026 string password_hash(const string &password, const string &salt, 00027 int iters, int keylen); 00028 00029 END_PUBLISH 00030 00031 #endif // HAVE_OPENSSL 00032 00033 #endif