Encode A String As URL-Safe Base64
Last updated
Was this helpful?
Last updated
Was this helpful?
Ruby's standard lib comes with a with a number of utilities for encoding and decoding data as . One of the methods it provides is urlsafe_encode64
.
You can pass it any string and it will create a URL-safe Base64 encoded representation of that string.