You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, the problem is with the name, in JavaScript, the names contain dashes, but in Ruby, you have to use names without dashes (docs) so you'll have normalize the name before creating a digest.
Hi,
on my development server, the gem works fine, but on my production server I got the following error:
RuntimeError (Unsupported digest algorithm (SHA-256).: first num too large)
It seems there is some trouble with the name SHA-256
When I change line
to
a.signature = OpenSSL::HMAC.hexdigest(OpenSSL::Digest::SHA256.new, Altcha.hmac_key, a.challenge)
in altcha-rails.rb it works fine.
The text was updated successfully, but these errors were encountered: