简体   繁体   English

用户 ID 模块-散列 email 地址

[英]User ID Module- hashing email address

All media websites can now share the hashed email addresses of their users through different prebid user modules.所有媒体网站现在都可以通过不同的预投标用户模块共享其用户的哈希email 地址。 ( https://docs.prebid.org/dev-docs/modules/userId.html ) Normally, you can use the php hash function to hash all the emails, before implementing the right module and send all the hashes. ( https://docs.prebid.org/dev-docs/modules/userId.html ) 通常,您可以使用 php hash function 到 88351852204.88 Any ideas on how this function can be implemented?关于如何实施这个 function 有什么想法吗?

I found this script https://gist.github.com/ehedaya/288c7280ee76b436cceec15941e4093a but I don't see where it should be added.我找到了这个脚本https://gist.github.com/ehedaya/288c7280ee76b436cceec15941e4093a但我看不到它应该添加到哪里。

Thanks a lot for your help!非常感谢你的帮助!

Generally the integration of Prebid.js User ID modules with hashed emails involves 3 steps:通常,将 Prebid.js 用户 ID 模块与散列电子邮件集成涉及 3 个步骤:

  1. Use hash function in your server side languages to get hashed email value在您的服务器端语言中使用 hash function 来获取散列值 email
  2. Pass that value to your front-end for Prebid.js, perhaps via cookies or hidden element on HTML将该值传递给 Prebid.js 的前端,可能通过 cookies 或 HTML 上的隐藏元素
  3. In your front-end JS, read values from step 2, and pass it to Prebid.js UserID modules在您的前端 JS 中,读取第 2 步中的值,并将其传递给 Prebid.js UserID 模块

Now back to your questions:现在回到你的问题:

I found this script https://gist.github.com/ehedaya/288c7280ee76b436cceec15941e4093a but I don't see where it should be added.我找到了这个脚本https://gist.github.com/ehedaya/288c7280ee76b436cceec15941e4093a但我看不到它应该添加到哪里。

This only covers the steps 1. You need to take the hashed email and follow steps 2 & 3 to make User ID modules work.这仅涵盖步骤 1。您需要采用散列 email 并按照步骤 2 和 3 使用户 ID 模块工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM