Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

lizkane222
Copy link
Contributor

What hash function is used for the external_id_hash field by Profile Sync? Zendesk Ticket : https://segment.zendesk.com/agent/tickets/503271

What hash function is used for the external_id_hash field by Profile Sync?

The value of the external_id_hash is a hash of the external_id_type and external_id_value, using SHA-1. This field corresponds the primary_key for the table. hash ( external_id_type and external_id_value)
For example, in Big Query this is the logic, TO_HEX(SHA1(concat(external_id_type, external_id_value))) as seg_hash.

Customer (MongoDB) reached out in March wondering what hashing algorithm is used by the Profiles Sync, no docs stated this anywhere though it's obvious that a hashing algorithm is used. Since this page is technical listing Profiles Sync Sample Queries, it's likely other customers would also want this information in order to un-hash (decrypt) their user data.

Merge timing

  • anytime once approved

Related issues (optional)

n/a

What hash function is used for the external_id_hash field by Profile Sync?
Zendesk Ticket : https://segment.zendesk.com/agent/tickets/503271
@lizkane222 lizkane222 added the KCS label Apr 27, 2023
@lizkane222 lizkane222 marked this pull request as ready for review October 3, 2023 18:39
@lizkane222 lizkane222 requested a review from rchinn1 as a code owner October 3, 2023 18:39
@rchinn1 rchinn1 merged commit b6da488 into develop Oct 17, 2023
@rchinn1 rchinn1 deleted the lizkane222-patch-6 branch October 17, 2023 15:54
@github-actions
Copy link
Contributor

Thank you for your contribution! Your pull request is merged, but may take a day or two to appear on the site.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants