Skip to content

base64 encoding and decoding with c++

License

Unknown, Unknown licenses found

Licenses found

Unknown
LICENSE
Unknown
LICENSE.cpp-base64
Notifications You must be signed in to change notification settings

heifner/base64

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

base64 (C++)

C++ Base64 encoding and decoding

  • Header Only
  • Templated for std::string, std::string_view, std::vector<char> and other container of char types
  • Performance improvements

Examples

// Interface:
// Defaults allow for use:
   std::string s = "foobar";
   std::string s_encoded = base64_encode(s);
   std::string_view sv = "foobar";
   std::string sv_encoded = base64_encode(sv);
   std::vector<char> vc = {'f', 'o', 'o'};
   std::string vc_encoded = base64_encode(vc);

// Also allows for user provided char containers and specified return types:
   std::vector<char> encoded = base64_encode<std::vector<char>>(s);

Based on

Fork of https://github.com/ReneNyffenegger/cpp-base64 with additions.

About

base64 encoding and decoding with c++

Resources

License

Unknown, Unknown licenses found

Licenses found

Unknown
LICENSE
Unknown
LICENSE.cpp-base64

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 97.4%
  • CMake 2.6%