Giter Site home page Giter Site logo

Comments (4)

mmoghadas avatar mmoghadas commented on September 26, 2024

ruby version maybe?

$ ruby --version                                                                                                                          [6:00:54]
ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-darwin14.0]
$ gem list|grep sha3                                                                                                                      [6:01:06]
sha3 (0.2.5)

irb -f [5:59:44]
irb(main):001:0> require 'openssl'
=> true
irb(main):002:0> OpenSSL::HMAC.digest OpenSSL::Digest::SHA512.new, '', ''
=> "\xB96\xCE\xE8l\x9F\x87\xAA]<o.\x84\xCBZB9\xA5\xFEPH\nn\xC6kp\xAB[\x1FJ\xC6s\flQT!\xB3'\xEC\[email protected]\xDF\xB4\x9A\xD78\x1E\xB0g\xB38\xFD{\f\xB2"G"]G"
irb(main):003:0> require 'sha3'
=> true
irb(main):004:0> OpenSSL::HMAC.digest OpenSSL::Digest::SHA512.new, '', ''
=> "\xB96\xCE\xE8l\x9F\x87\xAA]<o.\x84\xCBZB9\xA5\xFEPH\nn\xC6kp\xAB[\x1FJ\xC6s\flQT!\xB3'\xEC\[email protected]\xDF\xB4\x9A\xD78\x1E\xB0g\xB38\xFD{\f\xB2"G"]G"

from sha3.

paz-zz avatar paz-zz commented on September 26, 2024
$ ruby --version
ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-linux-gnu]

$ gem list | grep sha3
sha3 (0.2.5)

I get a different error in Rubinius

TypeError: wrong argument (�)! (Expected kind of )

$ rbx -v
rubinius 2.5.2.c136 (2.1.0 c776a009 2015-03-19 3.4 JI) [x86_64-linux-gnu]

$ uname -vr
3.13.0-49-generic #83-Ubuntu SMP Fri Apr 10 20:11:33 UTC 2015

from sha3.

johanns avatar johanns commented on September 26, 2024

Thanks for reporting the issue. I was able to reproduce it on Linux with (MRI 2.2.1), but interestingly, not on my development machine, OS X (with MRI or Rubinius).

Working on a fix!

from sha3.

johanns avatar johanns commented on September 26, 2024

@paz Apologies for the delay. I've published a fix for this issue. Please install the latest release v0.2.6: gem install sha3 -v0.2.6. Alternatively, you an download the gem directly from Github: https://github.com/johanns/sha3/releases/download/v0.2.6/sha3-0.2.6.gem

J

from sha3.

Related Issues (13)

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.