Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Add utility for verifying hashes.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@898477 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
jasondavies committed Jan 12, 2010
1 parent 66f4148 commit a24be94aa71172a0bd4af78514a2e201c929675d
Showing 2 changed files with 2 additions and 2 deletions.
@@ -8,4 +8,4 @@ signature(BaseString, CS, TS) ->
base64:encode_to_string(crypto:sha_mac(Key, BaseString)).

verify(Signature, BaseString, CS, TS) ->
Signature =:= signature(BaseString, CS, TS).
couch_util:verify(signature(BaseString, CS, TS), Signature).
@@ -7,4 +7,4 @@ signature(CS, TS) ->
oauth_uri:calate("&", [CS, TS]).

verify(Signature, CS, TS) ->
Signature =:= signature(CS, TS).
couch_util:verify(signature(CS, TS), Signature).

0 comments on commit a24be94

Please sign in to comment.