diff options
Diffstat (limited to 'src/erlang-oauth/oauth_plaintext.erl')
-rw-r--r-- | src/erlang-oauth/oauth_plaintext.erl | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/erlang-oauth/oauth_plaintext.erl b/src/erlang-oauth/oauth_plaintext.erl new file mode 100644 index 00000000..d8085e02 --- /dev/null +++ b/src/erlang-oauth/oauth_plaintext.erl @@ -0,0 +1,10 @@ +-module(oauth_plaintext). + +-export([signature/2, verify/3]). + + +signature(CS, TS) -> + oauth_uri:calate("&", [CS, TS]). + +verify(Signature, CS, TS) -> + Signature =:= signature(CS, TS). |