An optional parameter to set the Customer-Supplied Encryption key.
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 in read (download), write (upload), copy, and compose operations. Note that copy and compose operations use the same key for the source and destination objects.
[[["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 document outlines the use of Customer-Supplied Encryption Keys (CSEK) to protect data in Google Cloud Storage (GCS), emphasizing that GCS does not retain these keys."],["CSEKs are utilized in operations such as reading, writing, copying, and composing, with the same key used for both source and destination in copy and compose tasks."],["It is critical that applications safeguard their encryption keys, as data is irretrievable if they are lost, and avoid creating predictable keys."],["The document details the available functions `FromBinaryKey` and `FromBase64Key` for creating an encryption key parameter from a binary or base64 format, respectively."],["The latest release candidate for the document is version 2.37.0-rc and it also provides documentation for multiple previous versions, down to 2.11.0, with the current version detailed as 2.27.0."]]],[]]