我们从Python开源项目中,提取了以下5个代码示例,用于说明如何使用itsdangerous.Signer()。
def compat_sign(digest_method, key, message): """Sign message using old itsdangerous signer.""" return itsdangerous.Signer( key, digest_method=get_digest(digest_method), ).get_signature(message)
def param_signer(self): return Signer(self.config['SECRET_KEY'])
def get_signer(): return Signer(current_app.secret_key, salt='wrath-ctf')
def _get_signer(app): if not app.secret_key: return None return Signer(app.secret_key, salt='flask-sessions', key_derivation='hmac')
def _get_signer(self, app): if not app.secret_key: return None return Signer(app.secret_key, salt='flask-session', key_derivation='hmac')