Skip to content

Commit

Permalink
Release 1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
amdelamar committed Jun 30, 2018
1 parent 39da9ba commit c089939
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 16 deletions.
15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ OTP (One Time Password) utility in Java. To enable two-factor authentication (2F

## Getting Started

* Maven:
Maven:

```xml
<repositories>
Expand All @@ -19,32 +19,35 @@ OTP (One Time Password) utility in Java. To enable two-factor authentication (2F
<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:
Gradle:

```gradle
repositories {
jcenter()
}
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);
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
19 changes: 11 additions & 8 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ <h1>Jotp</h1>
<a class="button" target="_blank" href="https://github.com/amdelamar/jotp/"><span class="icon-github" style="font-size:1.5em;margin-right:5px"></span>View on GitHub</a>
<a class="button" target="_blank" href="https://github.com/amdelamar/jotp/issues"><span class="icon-bug" style="font-size:1.5em;margin-right:5px"></span>Report Issue</a>
</p>
<code>v1.1.0</code> - 17 Jun 2017 - <code>17KB</code>
<code>v1.2.0</code> - 30 Jun 2018 - <code>16KB</code>
</div>
<div class="twelve columns">
<hr />
Expand All @@ -76,28 +76,31 @@ <h3>Getting Started</h3>
&lt;url&gt;https://jcenter.bintray.com/&lt;/url&gt;
&lt;/repository&gt;
&lt;/repositories&gt;
...

&lt;dependency&gt;
&lt;groupId&gt;com.amdelamar&lt;/groupId&gt;
&lt;artifactId&gt;jotp&lt;/artifactId&gt;
&lt;version&gt;1.1.0&lt;/version&gt;
&lt;version&gt;1.2.0&lt;/version&gt;
&lt;/dependency&gt;</code></pre>

<p>Gradle:</p>
<pre><code class="yaml">repositories {
...
<pre><code class="groovy">repositories {
jcenter()
}
...

dependencies {
compile 'com.amdelamar:jotp:1.1.0'
compile 'com.amdelamar:jotp:1.2.0'
}
</code></pre>

<p>Or Download the <a href="https://github.com/amdelamar/jotp/releases">latest release</a>. Published on <a href="https://bintray.com/bintray/jcenter/jotp">JCenter</a>.</p>

<h3>Usage</h3>

<pre><code class="java">// Random secret Base32 with 20 bytes (160 bits) length
<pre><code class="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);
// Returns: IM4ZL3G5Q66KW4U7PMOQVXQQH3NGOCHQ
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.amdelamar</groupId>
<artifactId>jotp</artifactId>
<version>1.1.0</version>
<version>1.2.0</version>
<dependencies>
<dependency>
<groupId>commons-codec</groupId>
Expand Down

0 comments on commit c089939

Please sign in to comment.