Panda3D
Loading...
Searching...
No Matches
password_hash.h
Go to the documentation of this file.
1/**
2 * PANDA 3D SOFTWARE
3 * Copyright (c) Carnegie Mellon University. All rights reserved.
4 *
5 * All use of this software is subject to the terms of the revised BSD
6 * license. You should have received a copy of this license along
7 * with this source code in a file named "LICENSE."
8 *
9 * @file password_hash.h
10 * @author drose
11 * @date 2004-09-01
12 */
13
14#ifndef PASSWORD_HASH_H
15#define PASSWORD_HASH_H
16
17#include "pandabase.h"
18
19// The functions defined within this file rely on algorithms defined within
20// OpenSSL.
21#ifdef HAVE_OPENSSL
22
23BEGIN_PUBLISH
24
25EXPCL_PANDA_EXPRESS std::string password_hash(const std::string &password,
26 const std::string &salt,
27 int iters, int keylen);
28
29END_PUBLISH
30
31#endif // HAVE_OPENSSL
32
33#endif
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.