mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-02 05:24:51 +00:00
Use getpass instead of input
This commit is contained in:
parent
dacc0173f1
commit
b4a2490da2
1 changed files with 2 additions and 1 deletions
|
|
@ -18,6 +18,7 @@
|
|||
|
||||
import base64
|
||||
import binascii
|
||||
import getpass
|
||||
import json
|
||||
import logging
|
||||
import math
|
||||
|
|
@ -498,7 +499,7 @@ class Client(Methods, BaseClient):
|
|||
|
||||
if self.password is None:
|
||||
print("Hint: {}".format(r.hint))
|
||||
self.password = input("Enter password: ") # TODO: Use getpass
|
||||
self.password = getpass.getpass("Enter password: ")
|
||||
|
||||
if type(self.password) is str:
|
||||
self.password = r.current_salt + self.password.encode() + r.current_salt
|
||||
|
|
|
|||
Loading…
Reference in a new issue