I’m trying to create a Facebook Conversion API integration with Tape, but I encountered a problem with SHA-256 hashing. The conversion API requires hashing information such as emails and phone numbers before sending them to Facebook.
It appears that Tape cannot do hashing.I tried using:
We currently do not expose the Node crypto API directly, and most likely will not be able to do that in the future.
However, having a dedicated SHA-256 utility function inside the Tape SDK for workflow automations could be an option - It would allow creating a SHA-256 hex hash from an arbitrary string input.
Would having such a function solve your problem?
Let us check a potential implementation, this could be a low hanging fruit for our dev team. I will get back to you soon with a feedback.
My current use case is with the Facebook Conversion API (see here). This API does not accept unhashed customer information (for my case, I need to hash first name, last name, email, and phone).
Sending unhashed data to Facebook’s Conversions API (CAPI) can result in my account being suspended or banned, as it violates Facebook’s policies and security standards.
If you guys can provide a function to make this happen, that will save me a lot of time. My script is straightforward, and I can easily adapt a SHA-256 utility function to it.
Thanks for the update @Luis. Does your hashing need to be cryptographically secure?
If not, you could use a primitive utility that simply performs a “hashing like” transformation, to avoid directly exposing the content and also avoiding unwanted special characters.
the development team went back and checked your request, and unfortunately it is currently not possible to directly expose SHA-256 inside the workflow automation code sandbox. We would need to add a dedicated utility endpoint for that, similar to the QR code functionality.
Currently we focus on the forms beta release and the new record, but feel free to create a dedicated feature request for this capability if you still need it. Certainly a reasonable addition that we could implement in the future.