Instantly share code, notes, and snippets.


Base 64 encoding and decoding using OpenSSL

Functions to encode an array of bytes to Base64, and decode a Base64 string to an array of bytes.


Generating a Version 4 UUID using OpenSSL

A simple function that uses OpenSSL's RAND_bytes function to generate a Version 4 UUID.