.. _Nng\Nnhelpers\ViewHelpers\Encrypt\HashViewHelper: ======================================= encrypt.hash ======================================= Description --------------------------------------- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Generates a hash from a string or a number. .. code-block:: php {secret->nnt3:encrypt.hash()} {nnt3:encrypt(value:secret)} Helpful if, for example, an email is to be sent with a confirmation link. The UID of the data record is also transferred as a hash. The controller then checks whether the ``hash`` can be generated from the passed ``uid`` If not, the ``uid`` has been manipulated. .. code-block:: php ... | ``@return string``