项目作者: Open-Authenticator

项目描述 :
Firmware for Open Authenticator
高级语言: C
项目地址: git://github.com/Open-Authenticator/open-authenticator-app.git
创建时间: 2020-12-30T12:32:45Z
项目社区:https://github.com/Open-Authenticator/open-authenticator-app

开源协议:MIT License

下载


Open Authenticator App

Open Authenticator firmware
GitHub watchers
GitHub Repo stars
GitHub forks
GitHub issues
GitHub forks
GitHub repo size
GitHub license

Requirements

  • ESP-IDF v4.2 (release/v4.2)
  • Open-Authenticator board
  • USB-UART convertor board (to flash firmware)

Install instructions are available
here.
Make sure to install v4.2 (step 2 in the given link).

Usage

  • /oa_store/wifi.json contains the default wifi ssid configured after flashing
    firmware
  1. {"c":1,"s":["D-Link"],"p":["vdp30022"]}

It is a json string, c key represents number of wifi added, s is a list of
the ssid added and p is a list of passwords matching the array index of the
ssid names in s.

  • /oa_store/totp_key.json contains the detault totp keys added while flashing
    firmware, used for testing.
  1. {"c":2,"a":["Test-1", "Test-2"],"k":["JBSWY3DPEHPK3PXP", "DFSWY3DPEHPK3AXP"]}

It is a json string, c key represents number of totp keys added , a is a list of
the key aliases added and k is a list of totp keys matching the array index of the
ssid names in s. One can verify the generated OTP by adding the test keys to
this site

Compile firmware

  1. git clone --recurse-submodules https://github.com/Open-Authenticator/open-authenticator-app.git
  2. cd open-authenticator-app
  3. # activate esp-idf environment (get_idf)
  4. get_idf
  5. idf.py build

Flash firmware

1) Connect USB-UART to open-authenticator UART port

  1. connect as follows
  2. USB-UART----|== RX ==> --- <== TX ==|----Open Authenticator UART port
  3. | |
  4. |== TX ==> --- <== RX ==|

It should look like this after being connected

2) Connect USB Type-C to power the board

  • It is necessary to power the board using usb while flashing firmware. Both the
    usb to uart convertor and open authenticator board must be powered by same power
    source, as we haven’t connected ground of the convertor to that of board.
  • If one wants to flash without powering it up with usb, connect ground of usb-uart
    convertor to the shield of the usb-c port.

3) Put board in download mode

  • While board is powered on, press BOOT/SELECT button, and
    simultaneously press RESET button. Leave the BOOT/SELECT button after a
    few seconds.

4) Flash firmware

  1. idf.py flash

After it successfully flashes, press RESET and see it come to power, use the
buttons to navigate and use it.

License

  1. MIT License
  2. Copyright (c) 2020 Open-Authenticator
  3. Permission is hereby granted, free of charge, to any person obtaining a copy
  4. of this software and associated documentation files (the "Software"), to deal
  5. in the Software without restriction, including without limitation the rights
  6. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  7. copies of the Software, and to permit persons to whom the Software is
  8. furnished to do so, subject to the following conditions:
  9. The above copyright notice and this permission notice shall be included in all
  10. copies or substantial portions of the Software.
  11. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  12. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  13. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  14. AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  15. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  16. OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  17. SOFTWARE.