python - Fixed-length dump in itsdangerous -


how 1 go generating fixed length signed string using itsdangerous? obviously, need able unsign it.

>>> s.dumps('a') 'imei.th5lgzq2gyf7gqicsbayln70q4q' >>> s.dumps('aaa') 'imfhysi.roxzd0sejqhrhhpp-gezn7q3rfo' >>> s.dumps('aaaa') 'imfhywei.hk4xgo5na9oancnv21yxex41nta' 

when sign you're hashing it, need original later verify signature. if data want sign of variable length itsdangerous "signature" of variable length, because contains data.

having said that, may note itsdangerous adds separator .. part after separator fixed length signature, have retain data somehow verify signature.


Comments

Popular posts from this blog

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -

javascript - Restarting Supervisor and effect on FlaskSocketIO -

php - Mongodb connectivity error -