public sealed class CryptoHashConfig : IMessage<CryptoHashConfig>, IEquatable<CryptoHashConfig>, IDeepCloneable<CryptoHashConfig>, IBufferMessage, IMessage
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/dlp/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 webpage details the \u003ccode\u003eCryptoHashConfig\u003c/code\u003e class, a pseudonymization method within the Google Cloud DLP (Data Loss Prevention) library, version 3.3.0 and above.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCryptoHashConfig\u003c/code\u003e generates surrogates through cryptographic hashing using SHA-256, which supports key sizes of 32 or 64 bytes, and outputs a base64 encoded string of the hashed output.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCryptoHashConfig\u003c/code\u003e class is designed to work with string and integer values for hashing.\u003c/p\u003e\n"],["\u003cp\u003eThe class implements several interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and can be instantiated using one of two constructors, with one allowing another instance of \u003ccode\u003eCryptoHashConfig\u003c/code\u003e to be passed in for duplication.\u003c/p\u003e\n"],["\u003cp\u003eThis page provides access to documentation for various versions of \u003ccode\u003eCryptoHashConfig\u003c/code\u003e, from 2.15.0 up to the latest version, 4.16.0.\u003c/p\u003e\n"]]],[],null,[]]