# Google Cloud Recaptcha Enterprise V1 Client - Class PrivatePasswordLeakVerification (2.3.1)

2.3.1 (latest) 2.3.0 2.2.1 2.1.3 2.0.1 1.17.2 1.16.1 1.15.0 1.14.0 1.13.0 1.12.2 1.8.0 1.7.0 1.6.0 1.5.2 1.4.2 1.3.2 1.2.6 Reference documentation and code samples for the Google Cloud Recaptcha Enterprise V1 Client class PrivatePasswordLeakVerification.

Private password leak verification info.

Generated from protobuf message `google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification`

## Namespace

Google \\ Cloud \\ RecaptchaEnterprise \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ lookup_hash_prefix` | `string` Required. Exactly 26-bit prefix of the SHA-256 hash of the canonicalized username. It is used to look up password leaks associated with that hash prefix. |
| `↳ encrypted_user_credentials_hash` | `string` Optional. Encrypted Scrypt hash of the canonicalized username+password. It is re-encrypted by the server and returned through `reencrypted_user_credentials_hash`. |
| `↳ encrypted_leak_match_prefixes` | `string[]` Output only. List of prefixes of the encrypted potential password leaks that matched the given parameters. They must be compared with the client-side decryption prefix of `reencrypted_user_credentials_hash` |
| `↳ reencrypted_user_credentials_hash` | `string` Output only. Corresponds to the re-encryption of the `encrypted_user_credentials_hash` field. It is used to match potential password leaks within `encrypted_leak_match_prefixes`. |

### getLookupHashPrefix

Required. Exactly 26-bit prefix of the SHA-256 hash of the canonicalized
username. It is used to look up password leaks associated with that hash
prefix.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setLookupHashPrefix

Required. Exactly 26-bit prefix of the SHA-256 hash of the canonicalized
username. It is used to look up password leaks associated with that hash
prefix.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getEncryptedUserCredentialsHash

Optional. Encrypted Scrypt hash of the canonicalized username+password. It
is re-encrypted by the server and returned through
`reencrypted_user_credentials_hash`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setEncryptedUserCredentialsHash

Optional. Encrypted Scrypt hash of the canonicalized username+password. It
is re-encrypted by the server and returned through
`reencrypted_user_credentials_hash`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getEncryptedLeakMatchPrefixes

Output only. List of prefixes of the encrypted potential password leaks
that matched the given parameters. They must be compared with the
client-side decryption prefix of `reencrypted_user_credentials_hash`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setEncryptedLeakMatchPrefixes

Output only. List of prefixes of the encrypted potential password leaks
that matched the given parameters. They must be compared with the
client-side decryption prefix of `reencrypted_user_credentials_hash`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getReencryptedUserCredentialsHash

Output only. Corresponds to the re-encryption of the
`encrypted_user_credentials_hash` field. It is used to match potential
password leaks within `encrypted_leak_match_prefixes`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setReencryptedUserCredentialsHash

Output only. Corresponds to the re-encryption of the
`encrypted_user_credentials_hash` field. It is used to match potential
password leaks within `encrypted_leak_match_prefixes`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |