Azure C++ Utils 1.5.2+3
Azure REST API Helpers for Modern C++
Azure C++ Utils : Azure REST API Helpers for Modern C++
Author
siddiqsoft

CodeQL Build Status

Objective

  • Collect useful helpers for Azure REST API in a single location.
  • Header-only
  • Use Win32 functions on Windows

Requirements

  • The build and tests are for Visual Studio 2019 v16.11 under x64.
  • C++20 is required

API

Collection Description
siddiqsoft::ConversionUtils Conversion helpers (via the Win32 WideFromMultiByte methods.):
asciiFromWide, wideFromAscii, utf8FromWide, wideFromUtf8.
siddiqsoft::DateUtils Helpers for RFC7231 and RFC1123 as well as ISO8601 formatd time strings.
Supports std::string and std::wstring output.
siddiqsoft::Base64Utils encode and decode support for std::string only.
siddiqsoft::EncryptionUtils Encryption helpers for:
MD5, HMAC, JWTSHA256, SASToken and CosmosToken
Supports output to std::string and std::wstring containers.

NOTE The "keys" are binary contained within a std::string. Do not attempt to store them by conversion to std::wstring as they will produce different values and will fail against Azure. You can take the resulting "signed" string and convert it to std::wstring as they are url-safe utf-8.

Project is on GitHub