View Source GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2CryptoHashConfig (google_api_dlp v0.46.0)

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.

Attributes

  • cryptoKey (type: GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2CryptoKey.t, default: nil) - The key used by the hash function.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2CryptoHashConfig{
  cryptoKey: GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2CryptoKey.t() | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.