PageRenderTime 50ms CodeModel.GetById 45ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/modules/mod_oauth/deps/erlang-oauth/src/oauth_plaintext.erl

https://code.google.com/p/zotonic/
Erlang | 10 lines | 6 code | 4 blank | 0 comment | 0 complexity | 2451d5e769fea108224874c61a9814d1 MD5 | raw file
 1-module(oauth_plaintext).
 2
 3-export([signature/2, verify/3]).
 4
 5
 6signature(CS, TS) ->
 7  oauth_uri:calate("&", [CS, TS]).
 8
 9verify(Signature, CS, TS) ->
10  Signature =:= signature(CS, TS).