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"]],[["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."],[[["This page provides documentation for the `CryptoKey` class within the Google Cloud Data Loss Prevention (DLP) v2 API, detailing its properties, constructors, and inherited members."],["The `CryptoKey` class serves as a data encryption key (DEK), as opposed to a key encryption key (KEK) managed by Cloud Key Management Service (KMS), and is used for encrypting and decrypting data."],["The `CryptoKey` class implements multiple interfaces, including `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`, supporting various functionalities like serialization, equality checks, and deep cloning."],["This documentation lists the different versions of `CryptoKey`, starting from version 2.15.0 to the most recent version, 4.16.0, allowing developers to access specific API versions as needed."],["The class has three key properties: KmsWrapped, Transient, and Unwrapped, which allow different ways of handling keys: those wrapped using Cloud KMS, temporary keys, and unencrypted keys respectively."]]],[]]