GitHub webhook message validator
This package currently contains a single utility function, which may be used to validate the package of a GitHub webhook request against a shared secret.
Note that if you get the signature from the X-Hub-Signature
header, you'll need to convert it to
bytes via hex. One way is to use the
hex crate decode_to_slice function.
Example
use validate;
let signature = &vec!;
let secret = b"some-secret";
let message = b"blah-blah-blah";
assert_eq!;