Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/getting-started/gs-normalization-encoding.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ An email hash is a Base64-encoded <Link href="../ref-info/glossary-uid#gl-sha-25

The following table shows an example of a simple input email address, and the result as each step is applied to arrive at a secure, opaque value.

The final value, the hex to Base64 encoded representation of the SHA-256 hash, is the value to provide to the UID2 Operator endpoint.
The final value, the hex to Base64-encoded representation of the SHA-256 hash, is the value to provide to the UID2 Operator endpoint.

:::warning
When applying Base64 encoding, be sure to Base64-encode the raw bytes of the hash or use a Base64 encoder that takes a hex-encoded value as input. If you use a function that takes text as input, the result is a longer string which is invalid for the purposes of UID2.
Expand Down Expand Up @@ -147,7 +147,7 @@ A phone number hash is a Base64-encoded SHA-256 hash of a normalized phone numbe

The following table shows an example of a simple input phone number, and the result as each step is applied to arrive at a secure, opaque value.

The final value, the hex to Base64 encoded representation of the SHA-256 hash, is the value to provide to the UID2 Operator endpoint.
The final value, the hex to Base64-encoded representation of the SHA-256 hash, is the value to provide to the UID2 Operator endpoint.

:::warning
When applying Base64 encoding, be sure to use a function that takes a hex value as input. If you use a function that takes text as input, the result is a longer string which is invalid for the purposes of UID2.
Expand All @@ -162,7 +162,7 @@ When applying Base64 encoding, be sure to use a function that takes a hex value

## Example Code

For an example of how to generate email and phone hashes in JavaScript, see [Example Code: Hashing and Base-64 Encoding](../guides/integration-javascript-client-side#example-code-hashing-and-base-64-encoding).
For an example of how to generate email and phone hashes in JavaScript, see [Example Code: Hashing and Base64 Encoding](../guides/integration-javascript-client-side#example-code-hashing-and-base64-encoding).

## UID2 Hashing Tool

Expand Down
6 changes: 3 additions & 3 deletions docs/guides/integration-javascript-client-side.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ The following examples demonstrate the different ways that you can configure the

If the SDK is configured multiples times, it uses the most recent configuration values.

For an example of how to generate email and phone hashes in JavaScript, see [Example Code: Hashing and Base-64 Encoding](#example-code-hashing-and-base-64-encoding).
For an example of how to generate email and phone hashes in JavaScript, see [Example Code: Hashing and Base64 Encoding](#example-code-hashing-and-base64-encoding).

<Tabs>
<TabItem value='example_email_unhashed' label='Email, Unhashed'>
Expand Down Expand Up @@ -314,7 +314,7 @@ const clientSideConfig = {
serverPublicKey: "...",
};

// Example of a base-64 encoded SHA-256 hash of an email address.
// Example of a base64-encoded SHA-256 hash of an email address.
const emailHash = "tMmiiTI7IaAcPpQPFQ65uMVCWH8av9jw4cwf/F5HVRQ=";

// When the UID2 SDK is executed, it looks for these callbacks and invokes them.
Expand Down Expand Up @@ -386,7 +386,7 @@ If there was a problem generating the token, find the request in the **Network**

![Publisher Workflow](images/NetworkTraffic.png)

## Example Code: Hashing and Base-64 Encoding
## Example Code: Hashing and Base64 Encoding

The following code example demonstrates how to generate email and phone hashes in JavaScript.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ Base64 エンコーディングを適用する際は、ハッシュの生のバ

## Example Code

メールアドレスや電話番号のハッシュを生成する方法の例は、[Example Code: Hashing and Base-64 Encoding](../guides/integration-javascript-client-side#example-code-hashing-and-base-64-encoding) を参照してください。
メールアドレスや電話番号のハッシュを生成する方法の例は、[Example Code: Hashing and Base64 Encoding](../guides/integration-javascript-client-side#example-code-hashing-and-base64-encoding) を参照してください。

## UID2 Hashing Tool

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ SDK は、ハッシュ化された DII を UID2 Service に送信する前に暗

SDK が複数回設定された場合、最新の設定値が使用されます。

JavaScript でメールアドレスと電話番号のハッシュを生成する方法の例については、[Example Code: Hashing and Base-64 Encoding](#example-code-hashing-and-base-64-encoding) を参照してください。
JavaScript でメールアドレスと電話番号のハッシュを生成する方法の例については、[Example Code: Hashing and Base64 Encoding](#example-code-hashing-and-base64-encoding) を参照してください。

<Tabs>
<TabItem value='example_email_unhashed' label='Email, Unhashed'>
Expand Down Expand Up @@ -314,7 +314,7 @@ const clientSideConfig = {
serverPublicKey: "...",
};

// Example of a base-64 encoded SHA-256 hash of an email address.
// Example of a base64-encoded SHA-256 hash of an email address.
const emailHash = "tMmiiTI7IaAcPpQPFQ65uMVCWH8av9jw4cwf/F5HVRQ=";

// When the UID2 SDK is executed, it looks for these callbacks and invokes them.
Expand Down Expand Up @@ -386,7 +386,7 @@ window.__uid2.callbacks.push(async (eventType, payload) => {

![Publisher Workflow](images/NetworkTraffic.png)

## Example Code: Hashing and Base-64 Encoding
## Example Code: Hashing and Base64 Encoding

以下のコード例は、JavaScript でメールアドレスと電話番号のハッシュを生成する方法を示しています。

Expand Down
Loading