15 #ifndef ENCRYPT_STRING_H
16 #define ENCRYPT_STRING_H
18 #include "pandabase.h"
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);
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);
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);
49 #endif // HAVE_OPENSSL
The name of a file, such as a texture file or an Egg file.