mirror of
				https://github.com/noDRM/DeDRM_tools.git
				synced 2025-10-23 23:07:47 -04:00 
			
		
		
		
	Fix crash using bare sha1 symbol
Use sha1 from hashlib, as it isn't imported globally, fixed crash trying to decrypt a eReader PDB file
This commit is contained in:
		
							parent
							
								
									34c4c067e8
								
							
						
					
					
						commit
						05fff5217b
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -255,7 +255,7 @@ class EreaderProcessor(object): | |||
|             encrypted_key = r[172:172+8] | ||||
|             encrypted_key_sha = r[56:56+20] | ||||
|         self.content_key = des.decrypt(encrypted_key) | ||||
|         if sha1(self.content_key).digest() != encrypted_key_sha: | ||||
|         if hashlib.sha1(self.content_key).digest() != encrypted_key_sha: | ||||
|             raise ValueError('Incorrect Name and/or Credit Card') | ||||
| 
 | ||||
|     def getNumImages(self): | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Ben Combee
						Ben Combee