Is a UUID URL safe? I want to use it as an alternate ID yet perhaps allowing access to the record as the ID in the URL. While I can use Ruby’s SecureRandom.urlsafe_base64(27)
to obtain a random base64-encoded string of the same length, a UUID looks cleaner.
相关问题
- UrlEncodeUnicode and browser navigation errors
- Improve converting string to readable urls
- Jasper: error opening input stream from url
- what's wrong in my URL validation Regex using
- Yii - Eliminate default controller ID for a module
相关文章
- C# HttpClient.SendAsync always returns 404 but URL
- Prevent $anchorScroll from modifying the url
- How to create a 8 digit Unique ID in Python?
- How does a browser handle cookie with no path and
- Base64URL decoding via JavaScript?
- How to use uuid with postgresql gist index type?
- AttributeError: 'UUID' object has no attri
- Should I url encode a query string parameter that&
Yes.
A UUID consists of only hexadecimal characters (a–f, 0–9) plus a hyphen (-).
As per RFC 3986 (URI Syntax) §2.3, hyphen and hexadecimal characters are included in those explicitly unreserved: