ashwinbhaskar / google-authenticator Goto Github PK
View Code? Open in Web Editor NEWClojure program to compute your google authenticator OTP using TOTP
Clojure program to compute your google authenticator OTP using TOTP
I tried running the this project on GraalVM
. But the the start up time is the same as running on JVM
, which is around 2.38 seconds.
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]]}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.