Panda3D
 All Classes Functions Variables Enumerations
encrypt_string.h
1 // Filename: encrypt_string.h
2 // Created by: drose (30Jan07)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #ifndef ENCRYPT_STRING_H
16 #define ENCRYPT_STRING_H
17 
18 #include "pandabase.h"
19 
20 #ifdef HAVE_OPENSSL
21 
22 #include "filename.h"
23 
24 BEGIN_PUBLISH
25 
26 EXPCL_PANDAEXPRESS string
27 encrypt_string(const string &source, const string &password,
28  const string &algorithm = string(), int key_length = -1,
29  int iteration_count = -1);
30 EXPCL_PANDAEXPRESS string
31 decrypt_string(const string &source, const string &password);
32 
33 EXPCL_PANDAEXPRESS bool
34 encrypt_file(const Filename &source, const Filename &dest, const string &password,
35  const string &algorithm = string(), int key_length = -1,
36  int iteration_count = -1);
37 EXPCL_PANDAEXPRESS bool
38 decrypt_file(const Filename &source, const Filename &dest, const string &password);
39 
40 EXPCL_PANDAEXPRESS bool
41 encrypt_stream(istream &source, ostream &dest, const string &password,
42  const string &algorithm = string(), int key_length = -1,
43  int iteration_count = -1);
44 EXPCL_PANDAEXPRESS bool
45 decrypt_stream(istream &source, ostream &dest, const string &password);
46 
47 END_PUBLISH
48 
49 #endif // HAVE_OPENSSL
50 
51 #endif
The name of a file, such as a texture file or an Egg file.
Definition: filename.h:44