Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
dcrandall
Level 7

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
Roku Employee
Roku Employee

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