-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from markmcavoy/feature/nextVersion
Feature/next version
- Loading branch information
Showing
55 changed files
with
3,035 additions
and
1,650 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,18 @@ | ||
Android Token | ||
Auth Token (formerly, Android Token) | ||
============= | ||
Android Token is a project to create http://www.openauthentication.org/ software tokens for the Android platform. Turning a mobile phone into a One Time Password (OTP) generation device which can be used in the place of hardware tokens. | ||
Auth Token, (formerly Android Token) is an Android applicaion used to generate one time passwords (OTP). The application is open source and written in Java. The application supports both HOTP (event tokens, http://tools.ietf.org/html/rfc4226) and TOTP tokens (time tokens, http://tools.ietf.org/html/draft-mraihi-totp-timebased-00). | ||
|
||
Support for provisioning tokens using the https://github.com/google/google-authenticator/wiki/Key-Uri-Format KeyUriFormat and QR codes as well as manual creation. | ||
The application supports provisioning tokens using | ||
- [KeyUriFormat](https://github.com/google/google-authenticator/wiki/Key-Uri-Format) | ||
- QR codes | ||
- Manual creation. | ||
|
||
The application can optionally be protected with a PIN to stop unauthorised access to the software tokens. | ||
|
||
The project supports both http://tools.ietf.org/html/rfc4226 (Event Tokens) and http://tools.ietf.org/html/draft-mraihi-totp-timebased-00 (Time Tokens) specifications. | ||
Tokens can be exported as a QR code or by manually copying the seed to the clipboard. | ||
|
||
Screen Shots | ||
------------ | ||
|
||
![alt tag](https://github.com/markmcavoy/androidtoken/blob/wiki/screenshot1.png) | ||
![alt tag](https://github.com/markmcavoy/androidtoken/blob/wiki/screenshot2.png) | ||
![Main View](https://github.com/markmcavoy/androidtoken/blob/wiki/mainlist.png) | ||
![Manually adding a new token](https://github.com/markmcavoy/androidtoken/blob/wiki/add_token.png) | ||
![Settings page](https://github.com/markmcavoy/androidtoken/blob/wiki/settings.png) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Project-wide Gradle settings. | ||
# IDE (e.g. Android Studio) users: | ||
# Gradle settings configured through the IDE *will override* | ||
# any settings specified in this file. | ||
# For more details on how to configure your build environment visit | ||
# http://www.gradle.org/docs/current/userguide/build_environment.html | ||
# Specifies the JVM arguments used for the daemon process. | ||
# The setting is particularly useful for tweaking memory settings. | ||
org.gradle.jvmargs=-Xmx2048m | ||
# When configured, Gradle will run in incubating parallel mode. | ||
# This option should only be used with decoupled projects. More details, visit | ||
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects | ||
# org.gradle.parallel=true | ||
# AndroidX package structure to make it clearer which packages are bundled with the | ||
# Android operating system, and which are packaged with your app"s APK | ||
# https://developer.android.com/topic/libraries/support-library/androidx-rn | ||
android.useAndroidX=true | ||
# Automatically convert third-party libraries to use AndroidX | ||
android.enableJetifier=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,53 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="uk.co.bitethebullet.android.token" | ||
android:versionCode="5" | ||
android:versionName="2.10" | ||
android:installLocation="auto"> | ||
package="uk.co.bitethebullet.android.token" | ||
android:installLocation="auto" | ||
android:versionCode="6" | ||
android:versionName="3.00"> | ||
|
||
<supports-screens | ||
android:largeScreens="true" | ||
android:normalScreens="true" | ||
android:smallScreens="true" | ||
android:anyDensity="true" /> | ||
|
||
<application android:label="@string/app_name" android:icon="@drawable/androidtoken"> | ||
<activity android:name=".TokenList" | ||
android:label="@string/app_name"> | ||
android:anyDensity="true" | ||
android:largeScreens="true" | ||
android:normalScreens="true" | ||
android:smallScreens="true" /> | ||
|
||
<uses-permission android:name="android.permission.USE_BIOMETRIC" /> | ||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> | ||
|
||
<application | ||
android:icon="@drawable/androidtoken" | ||
android:label="@string/app_name" | ||
android:theme="@style/Theme.AppCompat.Light"> | ||
<activity android:name=".QRCodeActivity"></activity> | ||
<activity android:name=".SettingActivity" /> | ||
<activity | ||
android:name=".TokenList" | ||
android:label="@string/app_name"> | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN" /> | ||
|
||
<category android:name="android.intent.category.LAUNCHER" /> | ||
</intent-filter> | ||
<intent-filter> | ||
<action android:name="android.intent.action.VIEW"/> | ||
<category android:name="android.intent.category.DEFAULT"/> | ||
<action android:name="android.intent.action.VIEW" /> | ||
|
||
<category android:name="android.intent.category.DEFAULT" /> | ||
|
||
<data android:scheme="otpauth" /> | ||
</intent-filter> | ||
</intent-filter> | ||
</activity> | ||
<activity | ||
android:name=".TokenAdd" | ||
android:label="@string/app_name_add" /> | ||
<activity | ||
android:name=".PinChange" | ||
android:label="@string/app_name_change_pin" /> | ||
<activity | ||
android:name=".PinRemove" | ||
android:label="@string/app_name" /> | ||
<activity | ||
android:name=".About" | ||
android:label="@string/app_name_about" /> | ||
</application> | ||
|
||
<activity android:name=".TokenAdd" android:label="@string/app_name"></activity> | ||
<activity android:name=".PinChange" android:label="@string/app_name"></activity> | ||
<activity android:label="@string/app_name" android:name=".PinRemove"></activity> | ||
|
||
<activity android:name="com.google.ads.AdActivity"/> | ||
<activity android:name="Circle"></activity> | ||
|
||
</application> | ||
|
||
</manifest> | ||
</manifest> |
Binary file not shown.
Binary file not shown.
Binary file not shown.
33 changes: 33 additions & 0 deletions
33
src/main/java/uk/co/bitethebullet/android/token/About.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package uk.co.bitethebullet.android.token; | ||
|
||
import android.os.Bundle; | ||
import android.text.method.LinkMovementMethod; | ||
import android.view.View; | ||
import android.widget.Button; | ||
import android.widget.EditText; | ||
import android.widget.TextView; | ||
|
||
import androidx.appcompat.app.AppCompatActivity; | ||
|
||
public class About extends AppCompatActivity { | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.about); | ||
|
||
setupHyperlink(); | ||
} | ||
|
||
public void closeHandler(View v){ | ||
finish(); | ||
} | ||
|
||
private void setupHyperlink() { | ||
TextView linkTextView = findViewById(R.id.about_url); | ||
TextView linkZalabria = findViewById(R.id.about_info); | ||
|
||
linkTextView.setMovementMethod(LinkMovementMethod.getInstance()); | ||
linkZalabria.setMovementMethod(LinkMovementMethod.getInstance()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.