Skip to content

Commit 264e2f6

Browse files
authored
Update generate_password.sql
1 parent dce3a5c commit 264e2f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

misc/generate_password.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
with init(len, arr) as (
22
-- edit password length and possible characters here
3-
select 32, string_to_array('123456789abcdefghjkmnpqrstuvwxyzABCDEFGHJKMNPQRSTUVWXYZ~!@#$%^&*()_+[]{}_-\/?', null)
3+
select 16, string_to_array('123456789abcdefghjkmnpqrstuvwxyzABCDEFGHJKMNPQRSTUVWXYZ', null)
44
), arrlen(l) as (
55
select count(*)
66
from (select unnest(arr) from init) _
@@ -11,7 +11,7 @@ with init(len, arr) as (
1111
select array_to_string(array_agg(arr[i]), '') as password
1212
from init, indexes
1313
)
14-
select password, 'md5' || md5(password) as password_md5
14+
select password--, 'md5' || md5(password) as password_md5 || {{username}}
1515
from res
1616
;
1717

0 commit comments

Comments
 (0)