Giter Club home page Giter Club logo

signaturex's People

Contributors

edgurgel avatar lastcanal avatar lowks avatar lucas-nelson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

signaturex's Issues

Version 0.0.8 will not compile

Checked out v0.0.8 (which is the required version for poxa v0.5.0) and ran mix compile and got this error:

=INFO REPORT==== 22-Jun-2016::14:56:40 ===
    application: logger
    exited: {{shutdown,{failed_to_start_child,'Elixir.GenEvent',undef}},
             {'Elixir.Logger.App',start,[normal,[]]}}
    type: temporary
Compiled lib/signaturex/crypto_helper.ex

== Compilation error on file lib/signaturex.ex ==
** (CompileError) lib/signaturex.ex: internal error in lint_module;
crash reason: badarg

  in function  erl_anno:anno_info/1
     called as erl_anno:anno_info(-1)
  in call from erl_lint:loc/2 (erl_lint.erl, line 640)
  in call from erl_lint:icrt_export/4 (erl_lint.erl, line 3094)
  in call from erl_lint:icrt_clauses/4 (erl_lint.erl, line 3076)
  in call from erl_lint:expr/3 (erl_lint.erl, line 2168)
  in call from erl_lint:bin_element/4 (erl_lint.erl, line 1756)
  in call from lists:foldl/3 (lists.erl, line 1263)
  in call from erl_lint:expr_bin/4 (erl_lint.erl, line 1751)
    (stdlib) lists.erl:1338: :lists.foreach/2
    lib/signaturex.ex:4: (module)

I'm trying to look closer myself to see why it's failing. @edgurgel Do you have any ideas?

Erlang 24 / crypto 5.0 - function :crypto.hmac/3 is undefined or private

crypto 5.0, shipping with Erlang 24, has removed the hmac/3 function. The replacement seems to be mac/4 with :hmac as the first param.

** (UndefinedFunctionError) function :crypto.hmac/3 is undefined or private
    (crypto 5.0.2) :crypto.hmac(:sha256, "secret", "POST\n/apps/app_id/events\nauth_key=app_key&auth_timestamp=1628030250&auth_version=1.0&body_md5=271e594983d1c002b6a158cc5f9c7d5a")
    (signaturex 1.3.0) lib/signaturex/crypto_helper.ex:7: Signaturex.CryptoHelper.hmac256_to_string/2
    (signaturex 1.3.0) lib/signaturex.ex:88: Signaturex.sign/5

Also seeing the failure running tests:

  1) test hmac256_to_string (Signaturex.CryptoHelperTest)
     test/crypto_helper_test.exs:5
     ** (UndefinedFunctionError) function :crypto.hmac/3 is undefined or private, use crypto:mac/4 instead
     code: assert hmac256_to_string("7ad3773142a6692b25b8", "1234.1234:private-foobar") == "58df8b0c36d6982b82c3ecf6b4662e34fe8c25bba48f5369f135bf843651c3a4"
     stacktrace:
       (crypto 5.0.2) :crypto.hmac(:sha256, "7ad3773142a6692b25b8", "1234.1234:private-foobar")
       (signaturex 1.3.0) lib/signaturex/crypto_helper.ex:7: Signaturex.CryptoHelper.hmac256_to_string/2
       test/crypto_helper_test.exs:6: (test)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.