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.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#crypto_key
def crypto_key() -> ::Google::Cloud::Dlp::V2::CryptoKey
Returns
- (::Google::Cloud::Dlp::V2::CryptoKey) — The key used by the hash function.
#crypto_key=
def crypto_key=(value) -> ::Google::Cloud::Dlp::V2::CryptoKey
Parameter
- value (::Google::Cloud::Dlp::V2::CryptoKey) — The key used by the hash function.
Returns
- (::Google::Cloud::Dlp::V2::CryptoKey) — The key used by the hash function.