Skip to content

Commit

Permalink
update README.md to version 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Clausen committed Mar 18, 2024
1 parent 2db5d53 commit da0dec2
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 15 deletions.
18 changes: 8 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,26 @@
![Icon](icon/icon.png)
![Icon](icon/icon_small.png)

# Hotpants
## A HOTP/TOTP one time password generator for feature phones

A J2ME Java application to manage your two-factor authentication with your dumbphone on the go.

## Screenshots
![Scan QR Code](screenshots/qr_scan_demo.gif)
![Screenshot 1](screenshots/screenshot1.jpg)
![Screenshot 2](screenshots/screenshot2.jpg)

## Installation
Head over to [releases](/releases) and download the .jad or .jar file. Copy it to your phone (Bluetooth, USB…) and you should be ready to go.
[Download the .jar file of the latest release](/releases) and copy it to your phone (Bluetooth, USB…) and you should be ready to go.

## Usage
Just add HOTP and TOTP providers, either manually or **scan a QR code**. Then, you can simply read the temporary TOTP timepad password or the current HOTP password!
When using HOTP, just select the entry an click "New Pin".
You can import both TOTP (time-based one time passwords) and HOTP (counter based one time passwords). You can **scan the QR code** or enter the details manually.

Because some phones only allow for manual time setting by the minute, and TOTPs require exact timing by the second, you can set an offset on the seconds of the phone's time in the menu item "Time Configuration".
When using TOTP, make sure the date and time of your phone are exactly correct, otherwise the codes will not work. You can shift the time by a couple of seconds in the menu item "Time Configuration".

## Todo
When using HOTP, just select the entry an click "New Pin" to generate the next code.

* Validate secret
* Make hashing algorithm selectable (SHA1 at the moment)

## Credit
## Credits
OTP PIN calculation from [Evsinev](https://github.com/evsinev/j2me-hotp).
QR Code Scanner from [OnlineCity](https://github.com/onlinecity/oc-qrreader).
Thank you @lionkmp for testing!
4 changes: 2 additions & 2 deletions dist/Hotpants.jad
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
MIDlet-1: Hotpants,/icon32.png,hotpants.Midlet
MIDlet-Jar-Size: 78488
MIDlet-Jar-Size: 78363
MIDlet-Jar-URL: Hotpants.jar
MIDlet-Name: Hotpants
MIDlet-Permissions: javax.microedition.media.control.VideoControl.getSnapshot
MIDlet-Vendor: Matthias Clausen
MIDlet-Version: 1.4.2
MIDlet-Version: 2.0.0.0.58
MicroEdition-Configuration: CLDC-1.1
MicroEdition-Profile: MIDP-2.0
Nokia-MIDlet-On-Screen-Keypad: no
Binary file modified dist/Hotpants.jar
Binary file not shown.
Binary file added icon/icon_small.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions nbproject/project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ manifest.is.liblet=false
manifest.jad=
manifest.manifest=
manifest.midlets=MIDlet-1: Hotpants,/icon32.png,hotpants.Midlet\n
manifest.others=MIDlet-Vendor: Matthias Clausen\nMIDlet-Version: 1.4.1\nMIDlet-Name: Hotpants\nNokia-MIDlet-On-Screen-Keypad: no\n
manifest.others=MIDlet-Vendor: Matthias Clausen\nMIDlet-Version: 2.0.${deployment.number}\nMIDlet-Name: Hotpants\nNokia-MIDlet-On-Screen-Keypad: no\n
manifest.pushregistry=
name=Hotpants
no.dependencies=false
Expand All @@ -82,8 +82,8 @@ resources.dir=resources
run.cmd.options=
run.jvmargs=
run.method=STANDARD
run.security.domain=manufacturer
run.use.security.domain=false
run.security.domain=minimum
run.use.security.domain=true
savaje.application.icon=
savaje.application.icon.focused=
savaje.application.icon.small=
Expand Down
Binary file added screenshots/qr_scan_demo.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit da0dec2

Please sign in to comment.