public sealed class EncryptionKey : IEquatable<EncryptionKey>
Reference documentation and code samples for the Google Cloud Storage v1 API class EncryptionKey.
An AES-256 key passed to the Google Cloud Storage servers via headers to allow objects to be encrypted at
rest using a client-supplied key rather than a server-supplied default key. An alternative to
customer-supplied encryption keys is to use customer-managed encryption keys, via Cloud KMS.
A "don't encrypt" key, used in call-specific options to indicate that a particular request should
not use encryption even if the client has a default encryption key.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis document provides reference documentation for the \u003ccode\u003eEncryptionKey\u003c/code\u003e class within the Google Cloud Storage v1 API, which is used for client-side encryption of objects stored in Google Cloud Storage.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eEncryptionKey\u003c/code\u003e class allows for encryption using a client-supplied AES-256 key, providing an alternative to server-supplied keys or customer-managed encryption keys via Cloud KMS.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eEncryptionKey\u003c/code\u003e class has properties like \u003ccode\u003eBase64Hash\u003c/code\u003e, \u003ccode\u003eBase64Key\u003c/code\u003e, and \u003ccode\u003eNone\u003c/code\u003e, and methods such as \u003ccode\u003eCreate\u003c/code\u003e, \u003ccode\u003eGenerate\u003c/code\u003e, \u003ccode\u003eGetHashCode\u003c/code\u003e, and \u003ccode\u003eModifyRequest\u003c/code\u003e for key creation, generation, and request modification.\u003c/p\u003e\n"],["\u003cp\u003eThe provided content shows a history of versioned documentation with version 4.11.0 as the latest version, with 4.3.0 being the current version of the document shown.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eEncryptionKey\u003c/code\u003e implements \u003ccode\u003eIEquatable<EncryptionKey>\u003c/code\u003e and inherits from \u003ccode\u003eobject\u003c/code\u003e, providing standard object functionalities like \u003ccode\u003eGetType\u003c/code\u003e, \u003ccode\u003eMemberwiseClone\u003c/code\u003e, and \u003ccode\u003eToString\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]