Skip to content

User guide

clsergent edited this page Apr 22, 2019 · 2 revisions

Using the button

The key's push button can be used for two operations :

  • a short press : the stored password is typed. The status LED blinks.
  • a long press (5 seconds) : the stored password is deleted. The status LED turns off.

Caution : The key mimics an USB keyboard. This means that the password will be typed IN PLAIN TEXT, as if you were typing it.

Using commandline

The key can be controlled through a python script. Use python3 to execute it : python3 command.py [argument]

The following arguments can be passed :

  • -h : display a help message and exit.
  • -e <string> : echoes the string, i. e. the key types the string.
  • n <integer> : generates a new password of the length given by the integer.
  • r : read the password, i. e. the key types the string. This is equivalent to a short press on the key's button.
  • w <string> : write the password given by the string in the key's memory. Note that the string should be ASCII.
  • d : delete the password stored in the key's memory. This is equivalent to a long press on the key's button.
  • l <integer>: set the length of the password stored in the key's memory using the integer.
  • L <0|1> : switch on (1) or off (0) the status LED of the key.
  • H : echoes a short help, i. e. the key types an help
  • f <0|1> : adds (1) or not (0) a linefeed after the password. This can be useful to hit Enter after the password has been entered.
  • a <0|1> : automatically types (1) or not (0) the password at boot time, i. e. when the key is plugged. Default is 0.
Clone this wiki locally