From 3bb302ccef77af5650a088c7030563ba84d1552c Mon Sep 17 00:00:00 2001 From: alpaylan Date: Wed, 14 Apr 2021 15:30:04 +0300 Subject: add user passwds. --- scripts/passwd_generator.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 scripts/passwd_generator.py (limited to 'scripts/passwd_generator.py') 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 @@ +import random +import string + +def get_random_string_for_student(student, length): + # choose from all lowercase letter + letters = string.ascii_letters + string.digits + result_str = ''.join(random.choice(letters) for i in range(length)) + print((student, result_str)) + +students = [ + "e254275", "e223687", "e211024", "e209888", "e223725", "e209362", "e209898", "e230995", + "e223743", "e223747", "e223749", "e223751", "e188126", "e209913", "e203608", "e233013", + "e216982", "e217185", "e223780", "e194931", "e223783", "e254550", "e217203", "e217477", + "e223786", "e231060", "e223795", +] +for s in students: + get_random_string_for_student(s, 15) \ No newline at end of file -- cgit v1.2.3-70-g09d2