aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/passwd_generator.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/passwd_generator.py')
-rw-r--r--scripts/passwd_generator.py17
1 files changed, 17 insertions, 0 deletions
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 @@
1import random
2import string
3
4def 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
10students = [
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]
16for s in students:
17 get_random_string_for_student(s, 15) \ No newline at end of file