Skip to content

Instantly share code, notes, and snippets.

@VulBusters
Last active August 9, 2023 12:38
Show Gist options
  • Save VulBusters/6273ed7c63fc7a4d445116d43adec3c0 to your computer and use it in GitHub Desktop.
Save VulBusters/6273ed7c63fc7a4d445116d43adec3c0 to your computer and use it in GitHub Desktop.
def get_session_key(self, _salt, shared_secret) -> bytes:
return PBKDF2HMAC(
algorithm = hashes.SHA256(),
length = 32,
salt = _salt,
iterations = 310000
).derive(shared_secret)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment