Add possibility to sign and verify JSON strings directly #3

Merged
merged 1 commit into from Feb 5, 2013

Conversation

Projects
None yet
2 participants
Contributor

wehlutyk commented Feb 5, 2013

Problem

Imagine the following:

  • Sign some data on a smartphone, using smartphone libraries
  • Trying to verify that in python-jws, we first need to parse the JSON and python-jws will re-convert the generated object to JSON in its verification process. But if the re-conversion does not format the JSON in exactly the same way as the library on the smartphone did (i.e. the way it was in the payload), verification fails. But the signature was good!

Solution

Add the possibility to verify a signature on a json string, not only python objects.

Owner

brianloveswords commented Feb 5, 2013

Thanks!

@brianloveswords brianloveswords added a commit that referenced this pull request Feb 5, 2013

@brianloveswords brianloveswords Merge pull request #3 from wehlutyk/master
Add possibility to sign and verify JSON strings directly
9d4c9ed

@brianloveswords brianloveswords merged commit 9d4c9ed into brianloveswords:master Feb 5, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment