Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
AlessandroZ committed May 20, 2020
1 parent 118f936 commit 0f17c5d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Linux/lazagne/softwares/browsers/mozilla.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ def decrypt_3des(decoded_item, master_password, global_salt):
cipher_t = decoded_item[0][1].asOctets()

# See http://www.drh-consultancy.demon.co.uk/key3.html
hp = sha1(global_salt + convert_to_byte(master_password)).digest()
hp = sha1(global_salt + master_password).digest()
pes = entry_salt + convert_to_byte('\x00') * (20 - len(entry_salt))
chp = sha1(hp + entry_salt).digest()
k1 = hmac.new(chp, pes + entry_salt, sha1).digest()
Expand Down
2 changes: 1 addition & 1 deletion Mac/lazagne/softwares/browsers/mozilla.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ def decrypt_3des(decoded_item, master_password, global_salt):
cipher_t = decoded_item[0][1].asOctets()

# See http://www.drh-consultancy.demon.co.uk/key3.html
hp = sha1(global_salt + convert_to_byte(master_password)).digest()
hp = sha1(global_salt + master_password).digest()
pes = entry_salt + convert_to_byte('\x00') * (20 - len(entry_salt))
chp = sha1(hp + entry_salt).digest()
k1 = hmac.new(chp, pes + entry_salt, sha1).digest()
Expand Down
2 changes: 1 addition & 1 deletion Windows/lazagne/softwares/browsers/mozilla.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ def decrypt_3des(decoded_item, master_password, global_salt):
cipher_t = decoded_item[0][1].asOctets()

# See http://www.drh-consultancy.demon.co.uk/key3.html
hp = sha1(global_salt + convert_to_byte(master_password)).digest()
hp = sha1(global_salt + master_password).digest()
pes = entry_salt + convert_to_byte('\x00') * (20 - len(entry_salt))
chp = sha1(hp + entry_salt).digest()
k1 = hmac.new(chp, pes + entry_salt, sha1).digest()
Expand Down

0 comments on commit 0f17c5d

Please sign in to comment.