'Computes the signature of this safe cookie data.
A signed value of hash(version | session_id | user_id):timestamp
with a usage-specific key derived from key_salt.'

def sign(self, user_id):

    data_to_sign = self._compute_digest(user_id)
    self.signature = signing.dumps(data_to_sign, salt=self.key_salt)
