dong625 commited on
Commit
392d8b1
·
verified ·
1 Parent(s): 7fac7bb

Update sucode.py

Browse files
Files changed (1) hide show
  1. sucode.py +2 -3
sucode.py CHANGED
@@ -10,9 +10,8 @@ def su(username):
10
  passwords = {}
11
 
12
  for service in services:
13
- # password_str = f"{username}{current_time_day}{service}"
14
- # password = f"{service}-{hashlib.sha256(password_str.encode()).hexdigest()[2:8]}"
15
- password = "123456"
16
  passwords[service] = password
17
 
18
  return passwords
 
10
  passwords = {}
11
 
12
  for service in services:
13
+ password_str = f"{username}{current_time_day}{service}"
14
+ password = f"{service}-{hashlib.sha256(password_str.encode()).hexdigest()[2:8]}"
 
15
  passwords[service] = password
16
 
17
  return passwords