I want a simple link to activate a customer out of an email that gets sent to the admin on registration.
I am using this module: https://github.com/enrico69/magento2-customer-activation for the registration / activation workflow.
My idea is to add a link to that email, and add a nonce / secure hash to that email which I can decrypt in a custom controller to get the customer-id. My custom controller will simply call the methods from the named module and I am set.
The question is: how do I get such a secure hash? WordPress has the
wp_create_nonce() method for this. Is there a similar thing in Magento 2?