| Home | Trees | Indices | Help |
|
|---|
|
|
This is a stateless nonce storage that cannot check the usage count for a nonce and thus cannot protect against replay attacks. It however can make it difficult by posing a timeout on nonces and making it difficult to forge nonces.
This nonce store is usable with scgi.forkpool.
>>> s = StatelessNonceStore() >>> n = s.newnonce() >>> s.checknonce("spam") False >>> s.checknonce(n) True >>> s.checknonce(n) True >>> s.checknonce(n.rsplit(':', 1)[0] + "bad hash") False
|
|||
|
|||
| str |
|
||
| bool |
|
||
|
Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
x.__init__(...) initializes x; see help(type(x)) for signature
|
Generates a new nonce string.
|
Check whether the provided string is a nonce.
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Tue Mar 10 15:01:50 2020 | http://epydoc.sourceforge.net |