Added version file for getting library info. Some stuff, like Base64/Sha1 wasn't in the fr namespace. Has been moved into it.
29 lines
533 B
C++
29 lines
533 B
C++
//
|
|
// Created by fred on 01/03/18.
|
|
//
|
|
|
|
#ifndef FRNETLIB_BASE64_H
|
|
#define FRNETLIB_BASE64_H
|
|
#include <string>
|
|
|
|
namespace fr
|
|
{
|
|
class Base64
|
|
{
|
|
public:
|
|
/*!
|
|
* Encodes a string into Base64
|
|
*
|
|
* @param input The string to encode
|
|
* @return The resulting encoded string
|
|
*/
|
|
static std::string encode(const std::string &input);
|
|
|
|
//There's no decode function at the moment. Maybe I'll write one eventually. Sorry.
|
|
private:
|
|
|
|
};
|
|
}
|
|
|
|
#endif //FRNETLIB_BASE64_H
|