We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 01eeecc commit 9b44924Copy full SHA for 9b44924
1 file changed
internal/telegramdesktop/scripts/import_postbox.py
@@ -245,6 +245,9 @@ def read_passcodes(value: str | None) -> list[bytes]:
245
246
247
def tempkey_key(passcode: bytes) -> tuple[bytes, bytes]:
248
+ # Telegram Desktop derives the local tempkey AES key/IV with raw SHA512;
249
+ # this mirrors that file format and is not application password storage.
250
+ # codeql[py/weak-sensitive-data-hashing]
251
digest = hashlib.sha512(passcode).digest()
252
return digest[:32], digest[-16:]
253
0 commit comments