@token.setter
    def token(self, token):
        self.prefix = token[:self.prefix_length]
        self.hashed = hash_token(token, rounds=self.rounds, salt=self.salt_bytes, algorithm=self.algorithm)
Store the hashed value and prefix for a token
dataset/ETHPy150Open jupyterhub/jupyterhub/jupyterhub/orm.py/APIToken.token