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

Function encrypt_data

keepercommander/sox/__init__.py:65–72  ·  view source on GitHub ↗
(params, data)

Source from the content-addressed store, hash-verified

63
64
65def encrypt_data(params, data): # type: (KeeperParams, str) -> bytes
66 data_bytes = utils.string_to_bytes(data) if data else b''
67 encrypted = ''
68 try:
69 encrypted = crypto.encrypt_aes_v1(data_bytes, params.enterprise.get('unencrypted_tree_key'))
70 except Error as e:
71 logging.info(f'Error encrypting data, type = {type(data)}, value = {data}, message = {e.message}')
72 return encrypted
73
74
75def get_sox_database_name(params, enterprise_id): # type: (KeeperParams, int) -> str

Callers 2

to_user_entityFunction · 0.85
save_usersFunction · 0.85

Calls 2

getMethod · 0.80
infoMethod · 0.45

Tested by

no test coverage detected