diff --git a/README.md b/README.md index ed5d7b3..2314090 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ OTP (One Time Password) utility in Java. To enable two-factor authentication (2F ## Getting Started -* Maven: +Maven: ```xml @@ -19,15 +19,15 @@ OTP (One Time Password) utility in Java. To enable two-factor authentication (2F https://jcenter.bintray.com/ -... + com.amdelamar jotp - 1.1.0 + 1.2.0 ``` -* Gradle: +Gradle: ```gradle repositories { @@ -35,16 +35,19 @@ repositories { } dependencies { - compile 'com.amdelamar:jotp:1.1.0' + compile 'com.amdelamar:jotp:1.2.0' } ``` -* or Download the [latest release](https://github.com/amdelamar/jotp/releases). Published on [JCenter](https://bintray.com/bintray/jcenter/jotp). +Or Download the [latest release](https://github.com/amdelamar/jotp/releases). Published on [JCenter](https://bintray.com/bintray/jcenter/jotp). ## Usage ```java +import com.amdelamar.jotp.OTP; +import com.amdelamar.jotp.type.Type; + // Random secret Base32 with 20 bytes (160 bits) length // (Use this to setup 2FA for new accounts). String secret = OTP.randomBase32(20); diff --git a/build.gradle b/build.gradle index a4c9bed..09bcdc7 100644 --- a/build.gradle +++ b/build.gradle @@ -9,7 +9,7 @@ plugins { } group = 'com.amdelamar' -version = '1.1.0' +version = '1.2.0' description = 'OTP (One Time Password) utility in Java' sourceCompatibility = 1.8 targetCompatibility = 1.8 diff --git a/docs/index.html b/docs/index.html index b59f7fa..f3c4edb 100644 --- a/docs/index.html +++ b/docs/index.html @@ -59,7 +59,7 @@

Jotp

View on GitHub Report Issue

- v1.1.0 - 17 Jun 2017 - 17KB + v1.2.0 - 30 Jun 2018 - 16KB

@@ -76,28 +76,31 @@

Getting Started

<url>https://jcenter.bintray.com/</url> </repository> </repositories> -... + <dependency> <groupId>com.amdelamar</groupId> <artifactId>jotp</artifactId> - <version>1.1.0</version> + <version>1.2.0</version> </dependency>

Gradle:

-
repositories {
-    ...
+            
repositories {
     jcenter()
 }
-...
+
 dependencies {
-    compile 'com.amdelamar:jotp:1.1.0'
+    compile 'com.amdelamar:jotp:1.2.0'
 }
 
+

Or Download the latest release. Published on JCenter.

Usage

-
// Random secret Base32 with 20 bytes (160 bits) length
+            
import com.amdelamar.jotp.OTP;
+import com.amdelamar.jotp.type.Type;
+
+// Random secret Base32 with 20 bytes (160 bits) length
 // (Use this to setup 2FA for new accounts).
 String secret = OTP.randomBase32(20);
 // Returns: IM4ZL3G5Q66KW4U7PMOQVXQQH3NGOCHQ
diff --git a/pom.xml b/pom.xml
index 8ea90c8..1ea30a9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
   4.0.0
   com.amdelamar
   jotp
-  1.1.0
+  1.2.0
   
     
       commons-codec