Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: ac32047903
Fetching contributors…

Cannot retrieve contributors at this time

file 11 lines (7 sloc) 0.302 kb
1 2 3 4 5 6 7 8 9 10 11
-module(oauth_hmac_sha1).

-export([signature/3, verify/4]).


signature(BaseString, CS, TS) ->
  Key = oauth_uri:calate("&", [CS, TS]),
  base64:encode_to_string(crypto:sha_mac(Key, BaseString)).

verify(Signature, BaseString, CS, TS) ->
  couch_util:verify(Signature, signature(BaseString, CS, TS)).
Something went wrong with that request. Please try again.