public sealed class CryptoKey : IMessage<CryptoKey>, IEquatable<CryptoKey>, IDeepCloneable<CryptoKey>, IBufferMessage, IMessage
This is a data encryption key (DEK) (as opposed to
a key encryption key (KEK) stored by Cloud Key Management Service
(Cloud KMS).
When using Cloud KMS to wrap or unwrap a DEK, be sure to set an appropriate
IAM policy on the KEK to ensure an attacker cannot
unwrap the DEK.
[[["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-04-09 UTC."],[[["This webpage details the `CryptoKey` class within the `Google.Cloud.Dlp.V2` namespace, which is a data encryption key (DEK) used in the Data Loss Prevention (DLP) system."],["The `CryptoKey` class is available across multiple versions, ranging from 2.15.0 to the latest 4.16.0, and the documentation provides links to each version."],["`CryptoKey` implements several interfaces including `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`, and inherits from the `Object` class."],["The class offers constructors and properties, such as `KmsWrapped`, `Transient`, and `Unwrapped`, to manage different types of crypto keys and how they are stored or used."],["When using Cloud Key Management Service (Cloud KMS), it is important to be aware of IAM policy and key management in order to protect the DEK."]]],[]]