Skip to content

Reversing the short() function back to integer? Possible?

edited January 2019 in Questions

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.

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.

    You're the awesomest for the work you do.

    Thank you for your kind words. :)

    Best regards,
    Ben

This discussion has been closed.