MCPcopy Create free account
hub / github.com/Keeper-Security/Commander / get_random_bytes

Function get_random_bytes

keepercommander/crypto.py:43–44  ·  view source on GitHub ↗
(length)

Source from the content-addressed store, hash-verified

41
42
43def get_random_bytes(length):
44 return secrets.token_bytes(length)
45
46
47def generate_rsa_key():

Callers 4

encrypt_aes_v1Function · 0.85
encrypt_aes_v2Function · 0.85
set_streamMethod · 0.85
generate_api_keyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected