are_identities_hashed & hash_identities
These two configuration options work together to control how the Zeotap React Native SDK handles Personal Identifiable Information (PII) like email addresses and phone numbers when you call the setUserIdentities function. Correctly configuring these options is crucial for ensuring data is processed according to your intended hashing strategy.
PIIThese configuration only affect PIIs sent using setUserIdentities function. Recognised PIIs are cellno, email, loginid. Learn more about PIIs
Options Definitions
-
are_identities_hashed- Type:
Boolean - Default:
false - Description: Tells the SDK whether the PII values you are providing in the
setUserIdentitiescall are already hashed. Iftrue, you must use the specific hashed keys (e.g.,email_sha256_lowercase).
- Type:
-
hash_identities- Type:
Boolean - Default:
false - Description: Tells the SDK whether it should perform client-side hashing (SHA-256) on raw PII values (
email,cellno,loginid) provided tosetUserIdentitiesbefore sending the data to the Zeotap backend.
- Type:
Default Behavior
If you do not explicitly setare_identities_hashed or hash_identities during SDK initialization:
are_identities_hasheddefaults tofalse.hash_identitiesdefaults tofalse.
Combined usage
are_identities_hashed | hash_identities | Resulting Scenario |
|---|---|---|
false | false | Sending Raw Identifiers (Default) |
true | false | Sending Pre-Hashed Identifiers |
false | true | SDK Performs Hashing |
true | true | Invalid |
Scenario 1: Sending Raw Identifiers (Default)
Scenario 2: Sending Pre-Hashed Identifiers
Scenario 3: SDK Performs Hashing
Hashing Algorithm
Whenhash_identities is set to true, the React Native SDK uses SHA-256/SHA-1/MD-5 hashing algorithm to hash PII values before transmission.
Related Topics
setUserIdentitiesAPI Reference- Configuration Overview for all available SDK options