Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Keeper-Security/Commander
/ generate_uid
Function
generate_uid
keepercommander/utils.py:82–86 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
80
81
82
def
generate_uid():
# type: () -> str
83
b = crypto.get_random_bytes(16)
84
if
(b[0] & 0xf8) == 0xf8:
85
b = bytes([b[0] & 0x7f]) + b[1:]
86
return
base64_url_encode(b)
87
88
89
def
generate_aes_key():
# type: () -> bytes
Callers
8
test_docker_record_protected_by_uid_even_with_custom_title
Method · 0.90
test_docker_env_uid_present_even_without_params
Method · 0.90
test_sailpoint_record_protected_by_uid_even_with_custom_title
Method · 0.90
test_sailpoint_env_uid_present_even_without_params
Method · 0.90
test_terraform_record_protected_by_uid_even_with_custom_title
Method · 0.90
test_slack_record_protected_by_uid_even_with_custom_title
Method · 0.90
test_teams_record_protected_by_uid_even_with_custom_title
Method · 0.90
test_gchat_record_protected_by_uid_even_with_custom_title
Method · 0.90
Calls
1
base64_url_encode
Function · 0.85
Tested by
8
test_docker_record_protected_by_uid_even_with_custom_title
Method · 0.72
test_docker_env_uid_present_even_without_params
Method · 0.72
test_sailpoint_record_protected_by_uid_even_with_custom_title
Method · 0.72
test_sailpoint_env_uid_present_even_without_params
Method · 0.72
test_terraform_record_protected_by_uid_even_with_custom_title
Method · 0.72
test_slack_record_protected_by_uid_even_with_custom_title
Method · 0.72
test_teams_record_protected_by_uid_even_with_custom_title
Method · 0.72
test_gchat_record_protected_by_uid_even_with_custom_title
Method · 0.72