Virgil Security Crypto library  2.1.2
VirgilBase64.h
1 
37 #ifndef VIRGIL_CRYPTO_BASE64_H
38 #define VIRGIL_CRYPTO_BASE64_H
39 
40 #include <string>
41 
42 #include <virgil/crypto/VirgilByteArray.h>
43 
44 namespace virgil { namespace crypto { namespace foundation {
45 
49 class VirgilBase64 {
50 public:
54  static std::string encode(const virgil::crypto::VirgilByteArray& data);
55 
59  static virgil::crypto::VirgilByteArray decode(const std::string& base64str);
60 public:
64  VirgilBase64() = delete;
65 
66 };
67 
68 }}}
69 
70 #endif /* VIRGIL_CRYPTO_BASE64_H */
VirgilBase64()=delete
Deny object creation.
static virgil::crypto::VirgilByteArray decode(const std::string &base64str)
Transform given base64 string to the bytes.
static std::string encode(const virgil::crypto::VirgilByteArray &data)
Transform given bytes to the base64 string.
Root namespace for all Virgil Security libraries.
Definition: VirgilAsn1Compatible.h:46
std::vector< unsigned char > VirgilByteArray
This type represents a sequence of bytes.
Definition: VirgilByteArray.h:53
Provides base64 encoding / decoding.
Definition: VirgilBase64.h:49