| 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
|
|||
|
|||
|
|||
| str |
|
||
| bool |
|
||
|
|||
|
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 Sat May 29 01:07:37 2010 | http://epydoc.sourceforge.net |