Skip to content

Commit

Permalink
fix: fix passphrase_hash json format
Browse files Browse the repository at this point in the history
  • Loading branch information
lonelyhentxi committed Jan 28, 2025
1 parent e1e1561 commit 9e7e55d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/passphrase_hash.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import argparse
import secrets
import binascii
import json


def is_float(s: str):
Expand All @@ -18,7 +19,7 @@ def is_float(s: str):
def print_token(salt_s, md5_s, sha1_s, json_format=False):
print("-=-=-=- for server -=-=-=-")
if json_format:
print({'salt': salt_s, 'md5': md5_s, 'sha1': sha1_s})
print(json.dumps({'salt': salt_s, 'md5': md5_s, 'sha1': sha1_s}))
else:
print('salt:', salt_s)
print('md5:', md5_s)
Expand Down

0 comments on commit 9e7e55d

Please sign in to comment.