def create_token(self, user):
<EOL>h = crypto.pbkdf2(<EOL>self.get_revocation_key(user),<EOL>self.salt,<EOL>self.iterations,<EOL>digest=self.digest,<EOL>)<EOL>return self.sign(self.packer.pack_pk(user.pk) + h)<EOL>
Create a signed token from a user.