Leanplum / Leanplum-Android-SDK

Leanplum's integrated solution delivers meaningful engagement across messaging and the in-app experience.
https://www.leanplum.com
Apache License 2.0
46 stars 40 forks source link

Validate and Hash CTID #522

Closed hborisoff closed 1 year ago

hborisoff commented 1 year ago
What Where/Who
JIRA Issue SDK-2353
People Involved @hborisoff

Added LPIdentity containing both deviceId and userId, where methods deviceId() and userId() return valid strings for CleverTap.

New format:

The userId Hash is generated using the first 10 chars of the userId SHA256 string (hex).

If the deviceId does not pass validation or is longer than 50 characters, we use the first 32 chars of the deviceId SHA256 string (hex).