amdelamar / jotp Goto Github PK
View Code? Open in Web Editor NEW๐ OTP (One Time Password) utility in Java
Home Page: https://amdelamar.com/jotp
License: Apache License 2.0
๐ OTP (One Time Password) utility in Java
Home Page: https://amdelamar.com/jotp
License: Apache License 2.0
Skip the install step like so:
before_install:
- chmod +x gradlew
install: echo "skipping install step"
script:
- "./gradlew check"
The default install step runs gradle assemble. So doing that AND gradle check isn't really useful when tasks are being repeated on every build.
Currently com.github.amdelamar
does not match the actual package com.amdelamar used.
This should be updated so it can be published to maven central.
Hi,
Firstly thanks for the awesome library!
I'm not sure if you are aware but JCenter is shutting down https://jfrog.com/blog/into-the-sunset-bintray-jcenter-gocenter-and-chartcenter
I can't imagine what this means for Android ecosystem etc who heavily use Jcenter
Anyways perhaps it's worth looking at publishing releases to another repository as well?
They should check more than null
The latest published package is not mirrored in JCenter for some reason.
https://bintray.com/bintray/jcenter/jotp
https://bintray.com/amdelamar/mvn/jotp
Might be because of the group id change.
First you'll need to generate a pom.xml
Then update maven/gradle instructions:
Gradle:
repositories {
jcenter()
}
Maven:
<repositories>
<repository>
<id>bintray</id>
<url>http://jcenter.bintray.com</url>
</repository>
</repositories>
Default is 30
, but we should allow changing the period to other values.
If I am not wrong it uses the challenge response,HMAC-SHA128
Do i need some other 3rd party lib driver code to obtain the response then feed to jotp lib or is it included like the full spec?
// mark for deprecation
OTP.timeInHex(long)
OTP.random(String, int)
com.amdelamar.jotp.type.TOTPTest > totpTests FAILED
org.junit.ComparisonFailure at TOTPTest.java:50
Most likely because the test triggered late within the 30 second window.
// this generated code
OTP.create("MFRGGZDFMZTWQ2LK", OTP.timeInHex(), 6, Type.TOTP)
// does not equal this code
OTP.create("mfrggzdfmztwq2lk", OTP.timeInHex(), 6, Type.TOTP)
Secret should always be uppercased.
plugins {
id "org.sonarqube" version "2.6"
}
./gradlew sonarqube \
-Dsonar.organization=amdelamar-github \
-Dsonar.host.url=https://sonarcloud.io \
-Dsonar.login=xxxxxxxxxx
See all the issues by running:
./gradlew javadoc
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.