Why do LLM keys all start with sk?

3 points by swaraj ↗ HN
Genuinely curious, as a builder for so long, API keys took all shapes and sizes, but what's with the sk prefix these days?

2 comments

[ 506 ms ] story [ 497 ms ] thread
I assume it's loose convention intended to identify the string as "Secret Key", as a hint to the humans who might be moving the data around, and maybe to make it easier to write precautionary code like "hey it looks like your commit has a secret key in it, are you sure you want to push it?"
I think Stripe started it long ago with "pk_" and "sk_" prefixes for public key and secret key.