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

Function create_encryption_config

python/pyarrow/tests/test_dataset_encryption.py:75–84  ·  view source on GitHub ↗
(footer_key=FOOTER_KEY_NAME, column_keys=COLUMN_KEYS)

Source from the content-addressed store, hash-verified

73
74
75def create_encryption_config(footer_key=FOOTER_KEY_NAME, column_keys=COLUMN_KEYS):
76 return pe.EncryptionConfiguration(
77 footer_key=footer_key,
78 plaintext_footer=False,
79 column_keys=column_keys,
80 encryption_algorithm="AES_GCM_V1",
81 # requires timedelta or an assertion is raised
82 cache_lifetime=timedelta(minutes=5.0),
83 data_key_length_bits=256,
84 )
85
86
87def create_decryption_config():

Calls

no outgoing calls

Tested by

no test coverage detected