3 ms·
openssl rand -hex 8 | sed 's/..../&-/g;s/-$//' Or if you like upper-case letters: openssl rand -hex 8 | sed 's/..../&-/g;s/-$//;y/abcdef/ABCDEF/
by js2 5y ago
openssl rand -hex 8 | sed 's/..../&-/g;s/-$//'
Or if you like upper-case letters:
openssl rand -hex 8 | sed 's/..../&-/g;s/-$//;y/abcdef/ABCDEF/
- exolymph 5y agoThis would still parse as "random letters and numbers" to your typical support agent, no?
- js2 5y agoMaybe, but it's close to what I use. It's a limited character set and more or less looks like a credit-card which people are used to seeing. It's either that or pick a random dictionary word.
- deleted 5y ago[deleted]