Making Beautiful API Keys
81–90 of 107 posts
Re: Making Beautiful API Keys
#82One of the best things you can do to your API key is to give it a fixed prefix. Makes it very easy to tell that you have the right string, to detect accidental secret leakage, etc... IMHO this makes key much more beautiful than any internal structure.
Re: Making Beautiful API Keys
#83Re: Making Beautiful API Keys
#84This type of key editing always makes me nervous. I know how uuids behave. I'm not a security expert, but I'm 99% sure the formatting steps here don't increase the chance of key collisions or security implications significantly. Is that 1% risk worth it?
I doubt this matters in reality for this case, but the number of comments stating "there is no difference" or something to this effect shows how any added step can easily be misunderstood and could (in the worst case) introduce a fatal security flaw.
Re: Making Beautiful API Keys
#85Earlier quoted context omitted.
They use Crockford Base32 encoding which does exactly that.
I don't think so since the sample key they present in the big image contains many of these. The caption is "An example API key generated by github.com/gofrs/uuid and encoded with github.com/agentstation/uuidkey." - so something is wrong.
Re: Making Beautiful API Keys
#86The author mentions readability - if they care about it, they should eliminate all ambiguous characters like 0Oo1l.
Re: Making Beautiful API Keys
#87I have never ever heard a developer even mention the way api keys look before.
Re: Making Beautiful API Keys
#88I'm not sure if this is meant to be read as "uppercase (letters and numbers)", but it is effectively what he's referring to.
Lowercase digits do exist[1], but there's no Unicode encoding for them and fonts typically have to choose to support one or the other.
Re: Making Beautiful API Keys
#89This is the very definition of bikeshedding. It should be included as a reference in any definition of that term.