andOTP/README.md

187 lines
12 KiB
Markdown
Raw Permalink Normal View History

2017-06-28 08:29:18 +00:00
# andOTP - Android OTP Authenticator
2017-07-05 12:57:49 +00:00
2017-11-30 09:24:03 +00:00
[![Build Status](https://travis-ci.org/andOTP/andOTP.svg?branch=master)](https://travis-ci.org/andOTP/andOTP)
2021-06-15 04:03:43 +00:00
[![Current release](https://img.shields.io/github/release/andOTP/andOTP/all.svg)](https://github.com/andOTP/andOTP/releases/download/v0.9.0.1/andOTP_v0.9.0.1.apk)
2018-03-01 07:40:53 +00:00
[![Crowdin](https://d322cqt584bo4o.cloudfront.net/andotp/localized.svg)](https://crowdin.com/project/andotp)
[![Chat - Telegram](https://img.shields.io/badge/chat-Telegram-blue.svg)](https://t.me/andOTP)
2019-04-16 11:14:13 +00:00
[![Chat - Matrix](https://img.shields.io/badge/chat-Matrix-blue.svg)](https://matrix.to/#/#andOTP:privacytools.io)
2017-07-05 12:57:49 +00:00
2017-06-28 11:17:53 +00:00
![andOTP](./assets/logo.png)
2015-11-22 00:07:14 +00:00
2022-06-14 05:44:42 +00:00
## Unmaintained
**This repository is currently unmaintained.**
See [this XDA post](https://forum.xda-developers.com/t/app-4-4-open-source-andotp-open-source-two-factor-authentication-for-android.3636993/post-87021655) for more details.
## Intro
andOTP is a two-factor authentication App for Android 5.1+.
2015-11-25 23:21:17 +00:00
2018-03-21 07:06:00 +00:00
It implements Time-based One-time Passwords (TOTP) and HMAC-Based One-Time Passwords (HOTP).
Simply scan the QR code and login with the generated 6-digit code.
2015-11-25 23:27:58 +00:00
This project started out as a fork of the great [OTP Authenticator](https://github.com/0xbb/otp-authenticator) app written by [Bruno Bierbaumer](https://github.com/0xbb),
2018-03-02 07:53:26 +00:00
which has sadly been inactive since 2015. By now almost every aspect of the app has been changed/re-written so the fork status of the Github repository got
detached upon [user request](https://github.com/andOTP/andOTP/issues/145). But all credit for the original version and for starting this project still goes to Bruno!
2015-11-25 23:27:58 +00:00
2017-09-13 09:32:06 +00:00
## Help wanted:
I currently don't have that much time to spend developing andOTP, so any contributions are always welcome.
Don't worry, I will still continue to develop andOTP it will just slow down from the incredible speed I had going in the beginning.
2015-11-25 21:54:09 +00:00
## Features:
2017-06-30 16:21:57 +00:00
* Free and Open-Source
* Requires minimal permissions
2017-07-03 11:17:57 +00:00
- Camera access for QR code scanning
- Storage access for import and export of the database
2018-01-11 15:43:39 +00:00
* Encrypted storage with two backends:
- Android KeyStore
- Password / PIN
2017-07-31 21:20:21 +00:00
* Multiple backup options:
- Plain-text
- Password-protected
- OpenPGP-encrypted
2018-03-12 10:05:01 +00:00
* Sleek minimalistic Material Design with three different themes:
- Light
- Dark
- Black (for OLED screens)
2017-06-30 16:21:57 +00:00
* Great Usability
* Compatible with Google Authenticator
2018-03-21 07:06:00 +00:00
* Supported algorithms:
- TOTP (Time-based One-time Passwords) as specified in [RFC 6238](https://tools.ietf.org/html/rfc6238)
- HOTP (HMAC-based One-time Passwords) as specified in [RFC 4226](https://tools.ietf.org/html/rfc4226)
2017-06-30 16:21:57 +00:00
2017-07-20 11:14:22 +00:00
## Backups:
2017-07-20 13:07:24 +00:00
To keep your account information as secure as possible andOTP only stores it in
encrypted data files. A part of the encryption key used for that is stored in the
Android KeyStore system. The advantage of this approach is that the key is kept
separate from the apps data and, as a bonus, can be backed by hardware cryptography
(if your device supports this).
However, due to that separation, backups with 3rd-party apps like Titanium Backup can not
be used with andOTP. Such apps only backup the encrypted data files and not the encryption
key, which renders them useless.
2017-07-20 11:14:22 +00:00
**Please only use the internal backup functions provided by andOTP to backup your accounts!**
**Everything else WILL result in data loss.**
### Opening the backups on your PC:
2019-10-22 02:40:32 +00:00
* [OpenPGP](https://openpgp.org/): OpenPGP can be used to easily decrypt the **OpenPGP-encrypted backups** on your PC.
2019-09-24 09:57:47 +00:00
* [WebDecrypt](https://flocke.shadowice.org/andOTP/decrypt/): JavaScript-based decryption of the **new password-protected backup format** in the browser ([source code](https://github.com/andOTP/WebDecrypt)).
* [andOTP-decrypt](https://github.com/asmw/andOTP-decrypt): Python script written by @asmw to decrypt the **old and new password-protected backup format** on your PC.
* [mac2fa](https://github.com/lorenzo2897/mac2fa): Electron app for macOS that lives in your system tray and generates OTPs from an encrypted backup file.
* [go-andotp](https://github.com/grijul/go-andotp): CLI Program written in go to encrypt/decrypt andOTP files on your PC. Decrypted files can be encrypted and imported back to andOTP.
### Automatic backups:
* BroadcastReceivers: AndOTP supports a number of broadcasts to perform automated backups, eg. via Tasker. These will get saved to the defined backup directory. **These only work when KeyStore is used as the encryption mechanism**
- **org.shadowice.flocke.andotp.broadcast.PLAIN_TEXT_BACKUP**: Perform a plain text backup. **WARNING**: This will save your 2FA tokens onto the disk in an unencrypted manner!
- **org.shadowice.flocke.andotp.broadcast.ENCRYPTED_BACKUP**: Perform an encrypted backup of your 2FA database using the selected password in settings.
## Migration:
Check out [this](https://github.com/andOTP/andOTP/wiki/Migration) wiki page to learn about the different ways to migrate to andOTP from other 2FA apps.
2017-07-15 07:22:24 +00:00
## Downloads:
2015-12-20 22:40:21 +00:00
[<img height=80 alt="Get it on Google Play" src="https://play.google.com/intl/en_us/badges/images/generic/en-play-badge.png" />](https://play.google.com/store/apps/details?id=org.shadowice.flocke.andotp)
2020-04-22 14:38:04 +00:00
[<img height=80 alt="Get it on F-Droid" src="https://fdroid.gitlab.io/artwork/badge/get-it-on.png" />](https://f-droid.org/packages/org.shadowice.flocke.andotp/)
[<img height=80 alt="Get it on GitHub" src="https://raw.githubusercontent.com/flocke/andOTP/master/assets/badges/get-it-on-github.png" />](https://github.com/andOTP/andOTP/releases)
2017-07-15 19:22:51 +00:00
**Warning**: All three versions (Google Play, F-Droid and the APKs) are not compatible (not signed by the same key)!
2017-07-15 19:22:51 +00:00
You will have to uninstall one to install the other, which will delete all your data.
So make sure you have a **current backup** before switching!
2017-07-15 07:22:24 +00:00
2017-08-07 18:55:57 +00:00
## Contribute:
* **Translation**: If you want to help translate andOTP into your language head over to the [Crowdin project](https://crowdin.com/project/andotp).
* **Bug reports and feature requests**: You can report bugs and request features in the [Issue tracker](https://github.com/andOTP/andOTP/issues) on GitHub.
2020-02-04 07:44:49 +00:00
* **Requesting thumbnails**: If you are missing a thumbnail you can request it by [opening a thumbnail request](https://github.com/andOTP/andOTP/issues/new/choose).
2017-09-27 08:02:48 +00:00
* **Discussion and support**:
- [XDA thread](https://forum.xda-developers.com/android/apps-games/app-andotp-android-otp-authenticator-t3636993) (please keep off-topic to a minimum)
2018-02-26 12:36:08 +00:00
- Telegram group [@andOTP](https://t.me/andOTP) (if you just want important updates you can mute the group so you only get notified about pinned messages)
2021-10-15 04:30:04 +00:00
- Matrix channel [#andOTP:tchncs.de](https://matrix.to/#/#andOTP:tchncs.de)
2017-08-07 19:02:36 +00:00
2019-10-30 13:46:34 +00:00
#### Donations:
2018-01-11 15:43:39 +00:00
2019-10-30 13:46:34 +00:00
If you want to show your appreciation for our work with a small donation you can do so using the following links:
* [Donate to Jakob Nixdorf](https://flocke.shadowice.org/donate.html) (Main developer, maintainer)
* [Donate to Richy HBM](https://richyhbm.co.uk/donate) (Developer)
2018-01-11 15:43:39 +00:00
2017-08-07 19:02:36 +00:00
## Screenshots:
2018-03-12 10:05:01 +00:00
#### Light theme:
2017-08-07 19:02:36 +00:00
[<img width=200 alt="Main Activity" src="https://raw.githubusercontent.com/flocke/andOTP/master/assets/screenshots/main_activity.png">](https://raw.githubusercontent.com/flocke/andOTP/master/assets/screenshots/main_activity.png)
2018-03-12 10:05:01 +00:00
[<img width=200 alt="Settings Activity" src="https://raw.githubusercontent.com/flocke/andOTP/master/assets/screenshots/settings_activity.png">](https://raw.githubusercontent.com/flocke/andOTP/master/assets/screenshots/settings_activity.png)
[<img width=200 alt="Backup Activity" src="https://raw.githubusercontent.com/flocke/andOTP/master/assets/screenshots/backup_activity.png">](https://raw.githubusercontent.com/flocke/andOTP/master/assets/screenshots/backup_activity.png)
#### Dark theme:
2017-08-07 19:02:36 +00:00
[<img width=200 alt="Main Activity" src="https://raw.githubusercontent.com/flocke/andOTP/master/assets/screenshots/main_activity_dark.png">](https://raw.githubusercontent.com/flocke/andOTP/master/assets/screenshots/main_activity_dark.png)
2018-03-12 10:05:01 +00:00
[<img width=200 alt="Settings Activity" src="https://raw.githubusercontent.com/flocke/andOTP/master/assets/screenshots/settings_activity_dark.png">](https://raw.githubusercontent.com/flocke/andOTP/master/assets/screenshots/settings_activity_dark.png)
[<img width=200 alt="Backup Activity" src="https://raw.githubusercontent.com/flocke/andOTP/master/assets/screenshots/backup_activity_dark.png">](https://raw.githubusercontent.com/flocke/andOTP/master/assets/screenshots/backup_activity_dark.png)
#### Black theme:
[<img width=200 alt="Main Activity" src="https://raw.githubusercontent.com/flocke/andOTP/master/assets/screenshots/main_activity_black.png">](https://raw.githubusercontent.com/flocke/andOTP/master/assets/screenshots/main_activity_black.png)
[<img width=200 alt="Settings Activity" src="https://raw.githubusercontent.com/flocke/andOTP/master/assets/screenshots/settings_activity_black.png">](https://raw.githubusercontent.com/flocke/andOTP/master/assets/screenshots/settings_activity_black.png)
[<img width=200 alt="Backup Activity" src="https://raw.githubusercontent.com/flocke/andOTP/master/assets/screenshots/backup_activity_black.png">](https://raw.githubusercontent.com/flocke/andOTP/master/assets/screenshots/backup_activity_black.png)
2017-08-07 18:55:57 +00:00
2017-06-29 15:10:18 +00:00
## Acknowledgments:
2017-07-05 10:48:47 +00:00
#### Open-source components used:
2017-06-29 15:10:18 +00:00
* [AboutLibraries](https://github.com/mikepenz/AboutLibraries)
2017-07-05 11:11:30 +00:00
* [Apache Commons Codec](https://commons.apache.org/proper/commons-codec/)
* [Expandable Layout](https://github.com/AAkira/ExpandableLayout)
* [Floating Action Button Speed Dial](https://github.com/leinardi/FloatingActionButtonSpeedDial)
2018-02-28 13:18:00 +00:00
* [material-intro](https://github.com/heinrichreimer/material-intro)
2017-06-29 15:10:18 +00:00
* [MaterialProgressBar](https://github.com/DreaminginCodeZH/MaterialProgressBar)
* [OpenPGP API library](https://github.com/open-keychain/openpgp-api)
2017-06-29 15:10:18 +00:00
* [ZXing Android Embedded](https://github.com/journeyapps/zxing-android-embedded)
* [Droid Sans Mono Zeromod](https://github.com/AlbertoDorado/droid-sans-mono-zeromod)
2017-06-29 15:10:18 +00:00
2017-07-05 10:48:47 +00:00
#### Code examples used:
* [Android-ItemTouchHelper-Demo](https://github.com/iPaulPro/Android-ItemTouchHelper-Demo/tree/master/app/src/main/java/co/paulburke/android/itemtouchhelperdemo/helper)
* [Code Parts from Google's Android Samples](https://android.googlesource.com/platform/development/+/master/samples/Vault/src/com/example/android/vault)
2019-10-22 02:40:32 +00:00
* [LetterBitmap](https://stackoverflow.com/questions/23122088/colored-boxed-with-letters-a-la-gmail)
2017-11-27 21:29:02 +00:00
* [DimensionConverter](https://stackoverflow.com/questions/8343971/how-to-parse-a-dimension-string-and-convert-it-to-a-dimension-value)
* [NumberPickerPreference](https://github.com/Alobar/AndroidPreferenceTest/tree/master/alobar-preference)
2017-07-05 10:48:47 +00:00
#### Previously used open-source components:
* [FABsMenu](https://github.com/jahirfiquitiva/FABsMenu)
* [LicensesDialog](https://github.com/PSDev/LicensesDialog)
* [VNTNumberPickerPreference](https://github.com/vanniktech/VNTNumberPickerPreference)
2018-03-22 09:05:36 +00:00
#### Previously used code examples:
* [FloatingActionMenuAndroid](https://github.com/pmahsky/FloatingActionMenuAndroid)
2015-11-22 00:07:14 +00:00
## License:
```
Copyright (C) 2017-2020 Jakob Nixdorf <andotp@shadowice.org>
2015-11-22 01:31:45 +00:00
Copyright (C) 2015 Bruno Bierbaumer
2017-07-07 08:57:32 +00:00
2015-11-22 00:07:14 +00:00
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in the
Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
2017-07-07 08:57:32 +00:00
2015-11-22 00:07:14 +00:00
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
2017-07-07 08:57:32 +00:00
2015-11-22 00:07:14 +00:00
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
OR OTHER DEALINGS IN THE SOFTWARE.
```