mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-20 00:20:47 +00:00
23 lines
470 B
C++
23 lines
470 B
C++
/*
|
|
* Copyright 2019-present ScyllaDB
|
|
*/
|
|
|
|
/*
|
|
* SPDX-License-Identifier: LicenseRef-ScyllaDB-Source-Available-1.1
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <string_view>
|
|
#include "bytes_fwd.hh"
|
|
|
|
std::string base64_encode(bytes_view);
|
|
std::string base64url_encode(bytes_view);
|
|
|
|
bytes base64_decode(std::string_view);
|
|
bytes base64url_decode(std::string_view);
|
|
|
|
size_t base64_decoded_len(std::string_view str);
|
|
|
|
bool base64_begins_with(std::string_view base, std::string_view operand);
|