Library from https://github.com/paolostivanin/libbaseencode
Files were cleaned up for bare essentials.