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
Post a Comment