userver: userver/crypto/base64.hpp File Reference
⚠️ This is the documentation for an old userver version. Click here to switch to the latest version.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
base64.hpp File Reference

Cryptographic hashing. More...

#include <string_view>
+ Include dependency graph for base64.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  crypto
 Cryptography support.
 
namespace  crypto::base64
 Cryptographic hashing.
 

Enumerations

enum class  Pad {
  kWith ,
  kWithout
}
 

Functions

std::string crypto::base64::Base64Encode (std::string_view data, Pad pad=Pad::kWith)
 Encodes data to Base64, add padding by default.
 
std::string crypto::base64::Base64Decode (std::string_view data)
 Decodes data from Base64.
 
std::string crypto::base64::Base64UrlEncode (std::string_view data, Pad pad=Pad::kWith)
 Encodes data to Base64 (using URL alphabet), add padding by default.
 
std::string crypto::base64::Base64UrlDecode (std::string_view data)
 Decodes data from Base64 (using URL alphabet)
 

Detailed Description

Cryptographic hashing.

Definition in file base64.hpp.