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-03-24 UTC."],[[["The page documents the `CryptoKey` class within the `Google.Cloud.Dlp.V2` namespace, focusing on data encryption keys (DEKs) used in the Google Cloud Data Loss Prevention (DLP) API."],["It provides a list of available versions of the `CryptoKey` class, ranging from the latest version 4.16.0 down to version 2.15.0, with links to the specific documentation for each."],["`CryptoKey` is a sealed class that implements several interfaces including `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`, inheriting from the base `Object` class."],["The class supports three types of crypto keys: `KmsWrapped`, `Transient`, and `Unwrapped`, each serving different purposes in key management and encryption processes."],["It highlights the importance of setting appropriate IAM policies on the key encryption key (KEK) when using Cloud KMS to wrap or unwrap a DEK."]]],[]]