public sealed class CryptoHashConfig : IMessage<CryptoHashConfig>, IEquatable<CryptoHashConfig>, IDeepCloneable<CryptoHashConfig>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Data Loss Prevention v2 API class CryptoHashConfig.
Pseudonymization method that generates surrogates via cryptographic hashing.
Uses SHA-256.
The key size must be either 32 or 64 bytes.
Outputs a base64 encoded representation of the hashed output
(for example, L7k0BHmF1ha5U3NfGykjro4xWi1MPVQPjhMAZbSV9mM=).
Currently, only string and integer values can be hashed.
See https://cloud.google.com/sensitive-data-protection/docs/pseudonymization
to learn more.
[[["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 provides documentation for the \u003ccode\u003eCryptoHashConfig\u003c/code\u003e class within the Google Cloud Data Loss Prevention v2 API, specifically for version 4.10.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCryptoHashConfig\u003c/code\u003e is a pseudonymization method that employs SHA-256 cryptographic hashing to generate surrogates, requiring a key size of 32 or 64 bytes.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation outlines that the \u003ccode\u003eCryptoHashConfig\u003c/code\u003e class inherits from \u003ccode\u003eobject\u003c/code\u003e and implements interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe content presents a list of versions for \u003ccode\u003eCryptoHashConfig\u003c/code\u003e, ranging from version 2.15.0 to 4.16.0, with the latest being version 4.16.0, and each has a link to its respective documentation page.\u003c/p\u003e\n"],["\u003cp\u003eThe class \u003ccode\u003eCryptoHashConfig\u003c/code\u003e contains properties, like \u003ccode\u003eCryptoKey\u003c/code\u003e, which is used by the hashing function.\u003c/p\u003e\n"]]],[],null,[]]