lundi 4 juin 2018

Stringify random_bytes in PHP other than bin2hex

Are there any other ways to stringify contents from random_bytes in PHP, other than using bin2hex?

bin2hex is okay, but random_bytes(16) with it looks like MD5 at first.

base64 is nice as well, but I'd like to avoid all characters which I'd have to URI encode.




Aucun commentaire:

Enregistrer un commentaire