MCPcopy Create free account
hub / github.com/apache/arrow / wrap_key

Method wrap_key

python/pyarrow/tests/parquet/encryption.py:94–96  ·  view source on GitHub ↗
(self, key_bytes: bytes, master_key_identifier: str)

Source from the content-addressed store, hash-verified

92 return int(self.connection_config.key_access_token)
93
94 def wrap_key(self, key_bytes: bytes, master_key_identifier: str) -> str:
95 b64key = base64.b64encode(key_bytes).decode('utf-8')
96 return f"{master_key_identifier}:v{self.master_key_version}:{b64key}"
97
98 def unwrap_key(
99 self,

Callers

nothing calls this directly

Calls 1

decodeMethod · 0.45

Tested by

no test coverage detected