node package manager
Don’t reinvent the wheel. Reuse code within your team. Create a free org »

signed-request

signed-request Build Status

A signed JSON container. The form is basically:

base64url(hmac256(json(data))).base64url(json(data))

That's a base64 URL encoded hmac256 hash of the JSON representation of the data, followed by a dot ., followed by the base64 URL encoded JSON representation itself.

This is the same as the Facebook signed_request. But it's generically useful.