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"]],[["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 page details the \u003ccode\u003eCryptoKey\u003c/code\u003e class within the \u003ccode\u003eGoogle.Cloud.Dlp.V2\u003c/code\u003e namespace, focusing on data encryption keys (DEKs) used in the Google Cloud Data Loss Prevention (DLP) API.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCryptoKey\u003c/code\u003e class can represent various types of keys, including \u003ccode\u003eKmsWrappedCryptoKey\u003c/code\u003e, \u003ccode\u003eTransientCryptoKey\u003c/code\u003e, and \u003ccode\u003eUnwrappedCryptoKey\u003c/code\u003e, offering flexibility in key management.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCryptoKey\u003c/code\u003e class implements multiple interfaces, such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, to handle serialization, equality checks, deep cloning, and buffer message manipulation.\u003c/p\u003e\n"],["\u003cp\u003eThis page lists available versions for \u003ccode\u003eCryptoKey\u003c/code\u003e starting from version 2.15.0 up until the latest 4.16.0, with links provided for each version's specific documentation.\u003c/p\u003e\n"],["\u003cp\u003eThe page lists two constructors for the CryptoKey class, one empty and the other takes another CryptoKey object as a parameter.\u003c/p\u003e\n"]]],[],null,[]]