micahflee / sigbin

Other
2 stars 0 forks source link

Messages with non-url-safe bytes cause 500 error #4

Open garrettr opened 9 years ago

garrettr commented 9 years ago

Try signing a message that contains some non-URL-safe bytes. An easy way to generate one (with high probability) is:

head -c 100 /dev/urandom | gpg --clearsign

Pasting this message into sigbin results in a 500 Internal Server Error.

You can avoid the error by first encoding the message with base64, which indicates the source of the problem is likely with non-URL-safe bytes in the POST submission:

head -c 100 /dev/urandom | base64 | gpg --clearsign