Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
dcrandall
Visitor

Hash of a customer without revealing personal information?

There's the channel store object that allows us some access to a customer's information, properly at the customer's consent -

http://sdkdocs.roku.com/pages/viewpage. ... taasObject

Say we don't care, at all, about the customer other than it's an entity that could, in theory, have many rokus. Is there a way to get a unique identifier for that account?

This is purely for the sake of metrics.
0 Kudos
1 REPLY 1
RokuJoel
Binge Watcher

Re: Hash of a customer without revealing personal informatio

FYI:

* We only allow the use of GetPartialUserData to get the email and the person's first and last name.
* Policy Change: We will, in most cases no longer allow this for free channels or channels that don't use our billing system. If your channel uses our billing system, you may use GetPartialUserData to request the first name, last name and email address of the user.

Here is an example SHA1 hashing function:

function HashID(ID as string ) as string
digest=CreateObject("roEVPDigest")
ba=CreateObject("roByteArray")
digest.Setup("SHA1")
ba.FromAsciiString(ID)
return digest.process(ba)
end function


Joel
0 Kudos