Class: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1CryptoHashConfig
- Inherits:
-
Object
- Object
- Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1CryptoHashConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dlp_v2beta1/classes.rb,
generated/google/apis/dlp_v2beta1/representations.rb,
generated/google/apis/dlp_v2beta1/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 32 byte digest as an uppercase hex string (for example, 41D1567F7F99F1DC2A5FAB886DEE5BEE). Currently, only string and integer values can be hashed.
Instance Attribute Summary collapse
-
#crypto_key ⇒ Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1CryptoKey
This is a data encryption key (DEK) (as opposed to a key encryption key (KEK) stored by KMS).
Instance Method Summary collapse
-
#initialize(**args) ⇒ GooglePrivacyDlpV2beta1CryptoHashConfig
constructor
A new instance of GooglePrivacyDlpV2beta1CryptoHashConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GooglePrivacyDlpV2beta1CryptoHashConfig
Returns a new instance of GooglePrivacyDlpV2beta1CryptoHashConfig
741 742 743 |
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 741 def initialize(**args) update!(**args) end |
Instance Attribute Details
#crypto_key ⇒ Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1CryptoKey
This is a data encryption key (DEK) (as opposed to
a key encryption key (KEK) stored by KMS).
When using KMS to wrap/unwrap DEKs, be sure to set an appropriate
IAM policy on the KMS CryptoKey (KEK) to ensure an attacker cannot
unwrap the data crypto key.
Corresponds to the JSON property cryptoKey
739 740 741 |
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 739 def crypto_key @crypto_key end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
746 747 748 |
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 746 def update!(**args) @crypto_key = args[:crypto_key] if args.key?(:crypto_key) end |