|
libkeepass 0.2.0
KeePass key database importer/exporter library
|
Base64 encoding and decoding helpers. More...
#include <algorithm>#include <locale>#include <string>#include <string_view>#include <type_traits>#include "exception.hh"Go to the source code of this file.
Functions | |
| template<typename InputIterator > | |
| std::string | keepass::base64_encode (InputIterator first, InputIterator last) |
| Encodes a range of bytes into a base64 string. | |
| template<typename OutputIterator , typename Type > | |
| void | keepass::base64_decode (std::string_view src, OutputIterator result) |
| Decodes a base64 string into an output sequence. | |
| std::string | keepass::base64_encode (const std::string &src) |
Convenience overload that encodes an entire std::string. | |
| std::string | keepass::base64_decode (std::string_view src) |
Convenience overload that decodes a base64 string into a std::string. | |
Base64 encoding and decoding helpers.
| void keepass::base64_decode | ( | std::string_view | src, |
| OutputIterator | result | ||
| ) |
Decodes a base64 string into an output sequence.
| OutputIterator | the output iterator type receiving the decoded bytes. |
| Type | the value type written to the output iterator. |
| src | the base64 string to decode. |
| result | output iterator receiving the decoded bytes. |
| FormatError | if the input is not valid base64. |
| std::string keepass::base64_encode | ( | InputIterator | first, |
| InputIterator | last | ||
| ) |
Encodes a range of bytes into a base64 string.
| InputIterator | the iterator type over the input bytes. |
| first | begin iterator of the byte range. |
| last | end iterator of the byte range. |