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\u003eThe webpage provides documentation for the \u003ccode\u003eCryptoKey\u003c/code\u003e class within the \u003ccode\u003eGoogle.Cloud.Dlp.V2\u003c/code\u003e namespace, showing a version history from 2.15.0 up to the latest, which is 4.16.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCryptoKey\u003c/code\u003e is a data encryption key (DEK), and it should be protected by setting the appropriate IAM policy when used with Cloud Key Management Service (Cloud KMS) to prevent unauthorized unwrapping.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCryptoKey\u003c/code\u003e class can be instantiated with either a default constructor (\u003ccode\u003eCryptoKey()\u003c/code\u003e) or a copy constructor (\u003ccode\u003eCryptoKey(CryptoKey other)\u003c/code\u003e) and is related to IMessage, IEquatable, IDeepCloneable, and IBufferMessage interfaces.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCryptoKey\u003c/code\u003e objects can represent keys that are wrapped by Cloud KMS (\u003ccode\u003eKmsWrapped\u003c/code\u003e), transient (\u003ccode\u003eTransient\u003c/code\u003e), or unwrapped (\u003ccode\u003eUnwrapped\u003c/code\u003e), and the state is represented in the \u003ccode\u003eSourceCase\u003c/code\u003e property.\u003c/p\u003e\n"],["\u003cp\u003eThe webpage details inherited members such as GetHashCode(), GetType(), MemberwiseClone(), and ToString() from the base Object class, and shows the Google.Cloud.Dlp.V2.dll assembly.\u003c/p\u003e\n"]]],[],null,[]]