10372:1444b4bee64b | 10373:093dcebe5ecb |
---|---|
101 raise ValueError( | 101 raise ValueError( |
102 "Expected hash encoded password in format " | 102 "Expected hash encoded password in format " |
103 "'digestmod{0}iterations{0}salt{0}hashed_password".format(Delimiter) | 103 "'digestmod{0}iterations{0}salt{0}hashed_password".format(Delimiter) |
104 ) | 104 ) |
105 | 105 |
106 if digestname not in Hashes.keys(): | 106 if digestname not in Hashes: |
107 raise ValueError( | 107 raise ValueError( |
108 "Unsupported hash algorithm '{0}' for hash encoded password '{1}'.".format( | 108 "Unsupported hash algorithm '{0}' for hash encoded password '{1}'.".format( |
109 digestname, pwHash | 109 digestname, pwHash |
110 ) | 110 ) |
111 ) | 111 ) |
134 raise ValueError( | 134 raise ValueError( |
135 "Expected hash parameters string in format " | 135 "Expected hash parameters string in format " |
136 "'digestmod{0}iterations{0}salt".format(Delimiter) | 136 "'digestmod{0}iterations{0}salt".format(Delimiter) |
137 ) | 137 ) |
138 | 138 |
139 if digestname not in Hashes.keys(): | 139 if digestname not in Hashes: |
140 raise ValueError( | 140 raise ValueError( |
141 "Unsupported hash algorithm '{0}' for hash parameters '{1}'.".format( | 141 "Unsupported hash algorithm '{0}' for hash parameters '{1}'.".format( |
142 digestname, hashParameters | 142 digestname, hashParameters |
143 ) | 143 ) |
144 ) | 144 ) |