Added functions to convert base64 to hex and vice versa