News for hackers. Stuff that matters.
Re:Moving Away from UUIDs by indigodaddy on Monday November 21, 2022 @07:12PM (#33700060)
What about his solution (160-bit (20 byte) random value that is then URL-safe base64-encoded)? Is that a good and properly used security measure for a URL?
Re:Moving Away from UUIDs by fbdab103 on Tuesday November 22, 2022 @12:37AM (#33702417)
Depending on how many characters of representation you are willing to stomach, I prefer to use a more limited encoding than base64. Something that avoids IL1o0 so that a human could type it without guess work. As your human is not likely to know that you are including "0" but not "o", you have to nix both of them. This only matters if the url has any chance of being read by a human (ie ids). If it is some monstrous 2000 character thing that already contains gobs of metadata, go nuts.