Skip to content

Commit

Permalink
fix(utils): base64 before elfhash
Browse files Browse the repository at this point in the history
  • Loading branch information
PhotonQuantum committed Jul 19, 2020
1 parent 14c05ff commit 8bc386e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pysjtu/utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import base64
import collections
from math import inf
from pathlib import Path
Expand All @@ -7,7 +8,7 @@


def elfhash(input_str: str):
s = input_str.encode("utf-8")
s = base64.b64encode(input_str.encode("utf-8"))
_hash = 0
x = 0
for c in s:
Expand Down

0 comments on commit 8bc386e

Please sign in to comment.