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

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -