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

Function json_to_base64

keepercommander/utils.py:204–207  ·  view source on GitHub ↗
(json_str)

Source from the content-addressed store, hash-verified

202
203
204def json_to_base64(json_str):
205 json_bytes = string_to_bytes(json_str)
206 json_b64 = base64.b64encode(json_bytes).decode()
207 return json_b64
208
209
210def decrypt_encryption_params(encryption_params, password): # type: (bytes, str) -> bytes

Callers 1

convert_config_dictMethod · 0.85

Calls 1

string_to_bytesFunction · 0.85

Tested by

no test coverage detected