Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View rodrigovb96's full-sized avatar

Rodrigo Valente Bernardes rodrigovb96

View GitHub Profile
@rodrigovb96
rodrigovb96 / hex_to_base64.cpp
Last active March 29, 2018 03:15
Simple algorithm to convert a hexadecimal string to a base64 string.
#include <iostream>
#include <map>
#include <string>
#include <bitset>
std::string hex_to_bin(std::string hex_str);
std::string bin_to_base64(std::string bin_str);
std::string hex_to_base64(std::string hex_str);
int main()