Giter Club home page Giter Club logo

google-authenticator's Issues

"Algorithm HmacSHA1 not available" when running the Native Image produced by GraalVM

After the fix mentioned in the comments in #1, the start up time is very fast. But there is a JVM exception thrown when trying to calculate the OTP :

** ERROR: **
JVM Exception: #error {
 :cause Algorithm HmacSHA1 not available
 :via
 [{:type java.security.NoSuchAlgorithmException
   :message Algorithm HmacSHA1 not available
   :at [javax.crypto.Mac getInstance Mac.java 181]}]
 :trace
 [[javax.crypto.Mac getInstance Mac.java 181]
  [google_authenticator.core$hmac invokeStatic core.clj 39]
  [google_authenticator.core$hmac invoke core.clj 35]
  [google_authenticator.core$get_hmac invokeStatic core.clj 68]
  [google_authenticator.core$get_hmac invoke core.clj 68]
  [google_authenticator.core$get_otp invokeStatic core.clj 82]
  [google_authenticator.core$get_otp invoke core.clj 81]
  [google_authenticator.core$print_otp invokeStatic core.clj 94]
  [google_authenticator.core$print_otp invoke core.clj 93]
  [cli_matic.core$invoke_subcmd invokeStatic core.clj 797]
  [cli_matic.core$invoke_subcmd invoke core.clj 785]
  [cli_matic.core$run_cmd_STAR_ invokeStatic core.clj 831]
  [cli_matic.core$run_cmd_STAR_ invoke core.clj 817]
  [cli_matic.core$run_cmd invokeStatic core.clj 841]
  [cli_matic.core$run_cmd invoke core.clj 833]
  [google_authenticator.core$_main invokeStatic core.clj 122]
  [google_authenticator.core$_main doInvoke core.clj 117]
  [clojure.lang.RestFn applyTo RestFn.java 137]
  [google_authenticator.core main nil -1]]}

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.