randomBase64
Generates a random Base64-encoded string of the specified length.
Return
A random Base64-encoded string of the given length.
Parameters
length
The desired length of the resulting Base64-encoded string.
useUrlEncoder
If true, the URL-safe Base64 encoder will be used; defaults to false.