slack-verify: Slack API Request Verification HMAC

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.

[maintain] [Publish]

Please see the README on GitHub at

[Skip to Readme]


Change log
Dependencies base (>=4.7 && <5), base16-bytestring (>=0.1), bytestring (>=0.10), cryptonite (>=0.25) [details]
License MIT
Copyright 2018 Kyung Mo Kweon
Author Kyung Mo Kweon
Category Web
Home page
Bug tracker
Source repo head: git clone
Uploaded by kkweon at 2018-12-22T00:16:09Z


[Index] [Quick Jump]


Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Readme for slack-verify-

[back to package description]


Build Status Coverage Status Hacckage Version

Get Started

import qualified Web.Slack.Auth as Auth

slackSecret = Auth.SlackSigningToken "8f742231b10e8888abcd99yyyzzz85a5"
timestamp = Auth.Timestamp 1531420618
body = "token=xyzz0WbapA4vBCDEFasx0q6G&team_id=T1DC2JH3J&team_domain=testteamnow&channel_id=G8PSS9T3V&channel_name=foobar&user_id=U2CERLKJA&user_name=roadrunner&command=%2Fwebhook-collect&text=&"
expectedHash = Auth.Hex "v0=a2114d57b48eac39b9ad189dd8316235a7b4a8d21a10bd27519666489c69b503"

Auth.verify slackSecret timestamp body expectedHash