Virgil Security Crypto library  1.8.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 };
61 
62 }}}
63 
64 #endif /* VIRGIL_CRYPTO_BASE64_H */
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.
Definition: VirgilAsn1Compatible.h:46
Provides base64 encoding / decoding.
Definition: VirgilBase64.h:49