Skip to content

Instantly share code, notes, and snippets.

@kisssko
Last active February 3, 2022 10:18
Show Gist options
  • Save kisssko/61290ea56df10a9307eb7865c6b475a3 to your computer and use it in GitHub Desktop.
Save kisssko/61290ea56df10a9307eb7865c6b475a3 to your computer and use it in GitHub Desktop.
SQL (sqlite3) password generator
WITH RECURSIVE t(x) AS (SELECT 0 UNION ALL SELECT x + 1 FROM t LIMIT 8 * 16)
SELECT group_concat(substr('1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ',
abs(random()%(62))+1,1), '')
AS PASSWORD FROM t GROUP BY x % 16;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment