dynamodb_encryption_sdk.internal.crypto.encryption
Functions to handle encrypting and decrypting DynamoDB attributes.
Warning
No guarantee is provided on the modules and APIs within this namespace staying consistent. Directly reference at your own risk.
Functions
|
Decrypt a single DynamoDB attribute. |
|
Encrypt a single DynamoDB attribute. |
- dynamodb_encryption_sdk.internal.crypto.encryption.encrypt_attribute(attribute_name: str, attribute: Dict[str, Dict[str, Any]], encryption_key: dynamodb_encryption_sdk.delegated_keys.DelegatedKey, algorithm: str) Dict[str, ByteString] [source]
Encrypt a single DynamoDB attribute.
- Parameters
- Returns
Encrypted DynamoDB binary attribute
- Return type
- dynamodb_encryption_sdk.internal.crypto.encryption.decrypt_attribute(attribute_name: str, attribute: Dict[str, Dict[str, Any]], decryption_key: dynamodb_encryption_sdk.delegated_keys.DelegatedKey, algorithm: str) Dict[str, Dict[str, Any]] [source]
Decrypt a single DynamoDB attribute.
- Parameters
- Returns
Plaintext DynamoDB attribute
- Return type