picfit icon indicating copy to clipboard operation
picfit copied to clipboard

Wrong signature generation

Open beannt opened this issue 4 years ago • 1 comments

The command line signature test produce difference signature and url. The url always return invalid signature.

./picfit signature --key=abcdef "w=100&h=100&op=resize" Query String: w=100&h=100&op=resize Signature: 954eec9dfa9390f8f4264e15bb95f5f54e6fe953 Signed Query String: w=100&h=100&op=resize&sig=6f7a667559990dee9c30fb459b88c23776fad25e

beannt avatar May 22 '20 10:05 beannt

You need to give the query parameters in alphabetical order for the signature to work.

ornicar avatar Sep 05 '21 09:09 ornicar

It's not mentioned in the README, thank you for the answer @ornicar.

thoas avatar Jul 03 '23 16:07 thoas