Go to file
2019-05-28 19:00:12 +01:00
include Use one time initialization for base64 chars 2019-05-28 18:45:39 +01:00
scripts Initial commit 2019-05-27 23:47:26 +01:00
.gitignore Initial commit 2019-05-27 23:47:26 +01:00
CMakeLists.txt Initial commit 2019-05-27 23:47:26 +01:00
LICENSE Create LICENSE 2019-05-28 19:00:12 +01:00
README.md Create README.md 2019-05-28 18:56:55 +01:00

base64

A simple approach to convert strings from and to base64. Header only library.

Usage

#include "base64.hpp"
#include <iostream>

int main() {
  auto base64= to_base64("Hello, World!");
  std::cout << base64 << '\n'; // SGVsbG8sIFdvcmxkIQ==
  auto s = from_base64("SGVsbG8sIFdvcmxkIQ==");
  std::cout << s << '\n'; // Hello, World!
}