Constant-time sodium_bin2hex()
Original C# code by CodesInChaos.