diff options
author | alpaylan | 2021-04-14 15:30:04 +0300 |
---|---|---|
committer | alpaylan | 2021-04-14 15:30:04 +0300 |
commit | 3bb302ccef77af5650a088c7030563ba84d1552c (patch) | |
tree | 64f07dc6d386f9f18c71708c8bcd4e29f635c67a /scripts | |
parent | 14433dc3d41875dee45f2410018475683a87349e (diff) | |
download | gradecoin-3bb302ccef77af5650a088c7030563ba84d1552c.tar.gz gradecoin-3bb302ccef77af5650a088c7030563ba84d1552c.tar.bz2 gradecoin-3bb302ccef77af5650a088c7030563ba84d1552c.zip |
add user passwds.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/generated_passwords.passwd | 27 | ||||
-rw-r--r-- | scripts/passwd_generator.py | 17 |
2 files changed, 44 insertions, 0 deletions
diff --git a/scripts/generated_passwords.passwd b/scripts/generated_passwords.passwd new file mode 100644 index 0000000..075f376 --- /dev/null +++ b/scripts/generated_passwords.passwd | |||
@@ -0,0 +1,27 @@ | |||
1 | ('e254275', 'DtNX1qk4YF4saRH') | ||
2 | ('e223687', 'cvFEs4XLjuGBD1v') | ||
3 | ('e211024', 'voQAcxiKJmEXYRT') | ||
4 | ('e209888', 'O75dli6AQtz2tUi') | ||
5 | ('e223725', 'xXuTD3Y4tyrv2Jz') | ||
6 | ('e209362', 'N7wGm5XU5zVWOWu') | ||
7 | ('e209898', 'aKBFfB8fZMq8pVn') | ||
8 | ('e230995', 'TgcHGlqeFhQGx42') | ||
9 | ('e223743', 'YVWVSWuIHplJk9C') | ||
10 | ('e223747', '8LAeHrsjnwXh59Q') | ||
11 | ('e223749', 'HMFeJqVOzwCPHbc') | ||
12 | ('e223751', 'NjMsxmtmy2VOwMW') | ||
13 | ('e188126', 'QibuPdV2gXfsVJW') | ||
14 | ('e209913', 'kMxJvl2vHSWCy4A') | ||
15 | ('e203608', 'mfkkR0MWurk6Rp1') | ||
16 | ('e233013', 'GCqHxdOaDj2pWXx') | ||
17 | ('e216982', '2Z0xmgCStnj5qg5') | ||
18 | ('e217185', 'BcaZNlzlhPph7A3') | ||
19 | ('e223780', '2KvVxKUQaA9H4sn') | ||
20 | ('e194931', 'hsC0Wb8PQ5vzwdQ') | ||
21 | ('e223783', 'ETUJA3kt1QYvJai') | ||
22 | ('e254550', 'rPRjX0A4NefvKWi') | ||
23 | ('e217203', 'lN3IWhGyCrGfkk5') | ||
24 | ('e217477', 'O9xlMaa7LanC82w') | ||
25 | ('e223786', 'UxI6czykJfp9T9N') | ||
26 | ('e231060', 'VJgziofQQPCoisH') | ||
27 | ('e223795', 'pmcTCKox99NFsqp') | ||
diff --git a/scripts/passwd_generator.py b/scripts/passwd_generator.py new file mode 100644 index 0000000..8ab5b31 --- /dev/null +++ b/scripts/passwd_generator.py | |||
@@ -0,0 +1,17 @@ | |||
1 | import random | ||
2 | import string | ||
3 | |||
4 | def get_random_string_for_student(student, length): | ||
5 | # choose from all lowercase letter | ||
6 | letters = string.ascii_letters + string.digits | ||
7 | result_str = ''.join(random.choice(letters) for i in range(length)) | ||
8 | print((student, result_str)) | ||
9 | |||
10 | students = [ | ||
11 | "e254275", "e223687", "e211024", "e209888", "e223725", "e209362", "e209898", "e230995", | ||
12 | "e223743", "e223747", "e223749", "e223751", "e188126", "e209913", "e203608", "e233013", | ||
13 | "e216982", "e217185", "e223780", "e194931", "e223783", "e254550", "e217203", "e217477", | ||
14 | "e223786", "e231060", "e223795", | ||
15 | ] | ||
16 | for s in students: | ||
17 | get_random_string_for_student(s, 15) \ No newline at end of file | ||