Class: Google::Apis::DlpV2::GooglePrivacyDlpV2CryptoHashConfig
- Inherits:
-
Object
- Object
- Google::Apis::DlpV2::GooglePrivacyDlpV2CryptoHashConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dlp_v2/classes.rb,
lib/google/apis/dlp_v2/representations.rb,
lib/google/apis/dlp_v2/representations.rb
Overview
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.
Instance Attribute Summary collapse
-
#crypto_key ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2CryptoKey
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. Corresponds to the JSON property
cryptoKey
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GooglePrivacyDlpV2CryptoHashConfig
constructor
A new instance of GooglePrivacyDlpV2CryptoHashConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GooglePrivacyDlpV2CryptoHashConfig
Returns a new instance of GooglePrivacyDlpV2CryptoHashConfig.
2196 2197 2198 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 2196 def initialize(**args) update!(**args) end |
Instance Attribute Details
#crypto_key ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2CryptoKey
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.
Corresponds to the JSON property cryptoKey
2194 2195 2196 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 2194 def crypto_key @crypto_key end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2201 2202 2203 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 2201 def update!(**args) @crypto_key = args[:crypto_key] if args.key?(:crypto_key) end |