File tree Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -81,33 +81,33 @@ def forcedir(file_path):
8181 if not os .path .exists (directory ):
8282 os .makedirs (directory )
8383def hasher (filein , hname , blocksize ):
84- if hname = "blake2s" :
84+ if hname == "blake2s" :
8585 htype = hashlib .blake2s
86- elif hname = "sha384" :
86+ elif hname == "sha384" :
8787 htype = hashlib .sha384
88- elif hname = "sha512" :
88+ elif hname == "sha512" :
8989 htype = hashlib .sha512
90- elif hname = "sha3_256" :
90+ elif hname == "sha3_256" :
9191 htype = hashlib .sha3_256
92- elif hname = "sha256" :
92+ elif hname == "sha256" :
9393 htype = hashlib .sha256
94- elif hname = "md5" :
94+ elif hname == "md5" :
9595 htype = hashlib .md5
96- elif hname = "sha3_512" :
96+ elif hname == "sha3_512" :
9797 htype = hashlib .sha3_512
98- elif hname = "sha3_224" :
98+ elif hname == "sha3_224" :
9999 htype = hashlib .sha3_224
100- elif hname = "shake_128" :
100+ elif hname == "shake_128" :
101101 htype = hashlib .shake_128
102- elif hname = "shake_256" :
102+ elif hname == "shake_256" :
103103 htype = hashlib .shake_256
104- elif hname = "sha1" :
104+ elif hname == "sha1" :
105105 htype = hashlib .sha1
106- elif hname = "blake2b" :
106+ elif hname == "blake2b" :
107107 htype = hashlib .blake2b
108- elif hname = "sha224" :
108+ elif hname == "sha224" :
109109 htype = hashlib .sha224
110- elif hname = "sha3_384" :
110+ elif hname == "sha3_384" :
111111 htype = hashlib .sha3_384
112112 else :
113113 print ("wrong hash type" )
You can’t perform that action at this time.
0 commit comments