Reversing the short() function back to integer? Possible?
Looks like the second part of every custom sendy link inside an sent / tracked email is a subscriberid but it's been obfuscated using the short function.
Is there a reversal function for this so I can evaluate that Sendy link and get the original subscriberid?
I am writing an integration and using the referral links to get the Sendy links and then using custom SQL to get the Sendy info but it first requires me to convert this subscriberid info back into it's actual format from the database.
Thanks Ben. You're the awesomest for the work you do.
This discussion has been closed.
Comments
Hi,
You can check out the /includes/helpers/short.php script. This is the script that encrypts and decrypts the IDs.
For example
short(1)
encrypts the ID.And
short(5uPzZQVcrDSy, true)
decrypts the ID.Thank you for your kind words.
Best regards,
Ben