2020-12-12 14:36:38 +00:00
|
|
|
#ifndef HORCRUX_SRC_UTILS_H
|
|
|
|
#define HORCRUX_SRC_UTILS_H
|
2020-12-11 11:38:02 +00:00
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
namespace utils {
|
|
|
|
|
|
|
|
std::string to_base64(const std::vector<unsigned char>& binary);
|
|
|
|
std::vector<unsigned char> from_base64(const std::string& base64);
|
|
|
|
std::vector<unsigned char> generate_random(const size_t buf_len);
|
|
|
|
|
|
|
|
}
|
2020-12-12 14:36:38 +00:00
|
|
|
#endif //HORCRUX_SRC_UTILS_H
|