4#ifndef _Stroika_Foundation_Cryptography_Base64_h_
5#define _Stroika_Foundation_Cryptography_Base64_h_ 1
7#include "Stroika/Foundation/StroikaPreComp.h"
13#include "Stroika/Foundation/Common/Common.h"
60 LineBreak fLineBreak{LineBreak::eAuto_LB};
71namespace Stroika::Foundation::Cryptography::Encoding::Algorithm {
73 [[deprecated (
"Since Stroika v3.0d5 use Base64::Decode")]]
inline Memory::BLOB DecodeBase64 (span<const char> s)
75 return Base64::Decode (s);
77 [[deprecated (
"Since Stroika v3.0d5 use Base64::Decode")]]
inline Memory::BLOB DecodeBase64 (
const string& s)
79 return Base64::Decode (s);
81 [[deprecated (
"Since Stroika v3.0d5 use Base64::Decode")]]
inline Memory::BLOB DecodeBase64 (
const u8string& s)
83 return Base64::Decode (s);
85 [[deprecated (
"Since Stroika v3.0d5 use Base64::Decode")]]
inline Memory::BLOB DecodeBase64 (
const Characters::String& s)
87 return Base64::Decode (s);
89 [[deprecated (
"Since Stroika v3.0d5 use Base64::Decode")]]
inline void DecodeBase64 (
const string& s,
const Streams::OutputStream::Ptr<byte>& out)
91 Base64::Decode (s, out);
95 [[deprecated (
"Since Stroika v3.0d5 use Base64::Encode")]]
inline string EncodeBase64 (
const Streams::InputStream::Ptr<byte>& from,
96 LineBreak lb = LineBreak::eAuto_LB)
100 [[deprecated (
"Since Stroika v3.0d5 use Base64::Encode")]]
inline string EncodeBase64 (
const Memory::BLOB& from, LineBreak lb = LineBreak::eAuto_LB)
String is like std::u32string, except it is much easier to use, often much more space efficient,...
OutputStream<>::Ptr is Smart pointer to a stream-based sink of data.
string Encode(const Streams::InputStream::Ptr< byte > &from, const Options &o={})