An optional parameter to set the Customer-Supplied Encryption key for rewrite source object.
Application developers can generate their own encryption keys to protect the data in GCS. This is known as a Customer-Supplied Encryption key (CSEK). If the application provides a CSEK, GCS does not retain the key. The object data, the object CRC32 checksum, and its MD5 hash (if applicable) are all encrypted with this key, and the key is required to read any of these elements back.
Care must be taken to save and protect these keys, if lost, the data is not recoverable. Also, applications should avoid generating predictable keys, as this weakens the encryption.
This option is used only in rewrite operations and it defines the key used for the source object.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-21 UTC."],[[["This webpage provides documentation for the `SourceEncryptionKey` structure within the Google Cloud Storage C++ library, detailing its use in managing customer-supplied encryption keys."],["The page lists available versions of the `SourceEncryptionKey` documentation, ranging from version 2.11.0 to the latest release candidate 2.37.0-rc."],["Customer-Supplied Encryption Keys (CSEK) are used to protect data in Google Cloud Storage (GCS), with the responsibility of key management and protection falling to the application developers."],["The documentation outlines static functions `FromBinaryKey` and `FromBase64Key` for creating a `SourceEncryptionKey`, accepting either a raw 32-byte key or a base64-encoded key of the same length."],["The SourceEncryptionKey is used only in rewrite operations and defines the key for the source object."]]],[]]