| Home | Trees | Indices | Help |
|
|---|
|
|
Simple in-memory mechanism to store nonces.
>>> s = MemoryNonceStore(maxuses=1) >>> n = s.newnonce() >>> s.checknonce("spam") False >>> s.checknonce(n) True >>> s.checknonce(n) False >>> n = s.newnonce() >>> 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.
|
Do a check for whether the provided string is a nonce and increase usage count on returning True.
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Tue Mar 10 15:01:50 2020 | http://epydoc.sourceforge.net |