mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-12-15 14:18:51 -05:00
Run black on the scripts (#9981)
Turns out these scripts weren't getting linted.
This commit is contained in:
parent
5090f26b63
commit
6482075c95
8 changed files with 141 additions and 76 deletions
|
|
@ -41,7 +41,7 @@ if __name__ == "__main__":
|
|||
parser.add_argument(
|
||||
"-c",
|
||||
"--config",
|
||||
type=argparse.FileType('r'),
|
||||
type=argparse.FileType("r"),
|
||||
help=(
|
||||
"Path to server config file. "
|
||||
"Used to read in bcrypt_rounds and password_pepper."
|
||||
|
|
@ -72,8 +72,8 @@ if __name__ == "__main__":
|
|||
pw = unicodedata.normalize("NFKC", password)
|
||||
|
||||
hashed = bcrypt.hashpw(
|
||||
pw.encode('utf8') + password_pepper.encode("utf8"),
|
||||
pw.encode("utf8") + password_pepper.encode("utf8"),
|
||||
bcrypt.gensalt(bcrypt_rounds),
|
||||
).decode('ascii')
|
||||
).decode("ascii")
|
||||
|
||||
print(hashed)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue