'Signs and timestamps a string so it cannot be forged.
Normally used via set_secure_cookie, but provided as a separate
method for non-cookie uses.  To decode a value not stored
as a cookie use the optional value argument to get_secure_cookie.
.. versionchanged:: 3.2.1
Added the ``version`` argument.  Introduced cookie version 2
and made it the default.'

def create_signed_value(self, name, value, version=None):

    self.require_setting('cookie_secret', 'secure    cookies')
    return create_signed_value(self.application.settings['cookie_secret'], name, value, version=version)
