Created
February 2, 2023 10:09
-
-
Save blluv/1bcb63e659cd0c151495469395d20640 to your computer and use it in GitHub Desktop.
generate vox srtp master key
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def generateSrtpMasterKey(callId: int): | |
callId = str(((callId >> 2) + 0xC5FF9) & 0xFFFFFFFFFFFFFFFF) | |
return "".join([callId[i % len(callId)] for i in range(30)]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment