#pragma once #include #include #include #include #include namespace ts6bot::crypto { // RFC 7636: length 43..128, chars [A-Z a-z 0-9 - . _ ~] std::string GenerateCodeVerifier(std::size_t length = 64); // Random state value (base64url, no padding). std::string GenerateState(std::size_t bytes = 16); std::vector Sha256(std::span data); std::vector Sha256(std::span data); // Base64url encode without padding. std::string Base64UrlEncode(std::span data); } // namespace ts6bot::crypto