public sealed class CryptoKey : IMessage<CryptoKey>, IEquatable<CryptoKey>, IDeepCloneable<CryptoKey>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Data Loss Prevention v2 API class CryptoKey.
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 webpage provides documentation for the \u003ccode\u003eCryptoKey\u003c/code\u003e class within the Google Cloud Data Loss Prevention v2 API for .NET, with the current version being 4.7.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCryptoKey\u003c/code\u003e class is a data encryption key (DEK) that can be used for data protection, and it is implemented as part of the \u003ccode\u003eGoogle.Cloud.Dlp.V2\u003c/code\u003e namespace.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation covers the \u003ccode\u003eCryptoKey\u003c/code\u003e class constructors, properties such as \u003ccode\u003eKmsWrapped\u003c/code\u003e, \u003ccode\u003eSourceCase\u003c/code\u003e, \u003ccode\u003eTransient\u003c/code\u003e, and \u003ccode\u003eUnwrapped\u003c/code\u003e, as well as its inheritance and the interfaces it implements, including IMessage, IEquatable, IDeepCloneable, and IBufferMessage.\u003c/p\u003e\n"],["\u003cp\u003eThe webpage allows users to navigate through different versions of the API, ranging from the latest version 4.16.0 down to version 2.15.0.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation clarifies the distinction between DEKs and KEKs, and advises users on setting IAM policies when using Cloud KMS to ensure secure key management.\u003c/p\u003e\n"]]],[],null,[]]