-
Notifications
You must be signed in to change notification settings - Fork 47
How to use OTPClient
- First run
- Add token
- Delete token
- Show token
- Search token
- Sort token
- Import and Export
- Lock and Auto-lock
- Secret Service Integration
- CLI
On the first run, you will be asked:
- where to store the database file
- to type two times the encryption password for the database
Please keep in mind that the password can't be recovered. This means that if the password is forgotten, the data is lost.
After the first run, every time you start the program you will be asked to enter the password you have previously chosen.
There are multiple ways to add a new token to the app:
- by using the webcam to scan a qrcode, for example, from your smartphone (Scan using webcam)
- by taking a screenshot of the screen you are currently using (Take screenshot). This requires gnome-shell
- from a QR code. Here you can choose between:
- importing a QR code stored as a
png
file on the disk - importing a QR code from clipboard (tested on GNOME and KDE). Please note that when using Spectacle on KDE the image must be copied to clipboard before selecting this option
- importing a QR code stored as a
- by manually entering the needed info (Manually)
To delete one or more tokens just click on the -
sign next to the +
. The button will become red and, from now on, every time you click on a row, the row will be deleted.
To exit the deletion mode, just click on the -
button again.
To show a token you just need to click (or hit enter or spacebar) on the desired row. This will:
- show the token
- copy the token to the clipboard (only the default clipboard is supported. External clipboard managers may or may not work)
- show a notification
Each token is shown by default only 1 time. If you'd prefer to see the current token and the next one, you just need to activate the property "Show next OTP" from the settings menu (top right corner, then click settings)
By default, a token is searched by its label
. If you prefer searching by Issuer
, you can change this property from the top right menu, under settings.
Please note that it's not possible to search by label and issuer at the same time
It's possible to sort tokens on the main view by first clicking on the "double arrows" button at the top left of the title bar, and then dragging and dropping tokens where wanted. When you're done, you must click again the "double arrows" button.
To import/export a file, just open the hamburger menu on the top right, select Import or Export and then select the correct provider.
App can now be locked both manually (by hitting CTRL-L
) and automatically. By default, only the manual method is active, but you can choose to auto-lock the application after a certain amount of time (Auto lock when inactive for
) and/or when the screensaver turns on (Auto lock on system lock
).
Since 2.6.0, OTPClient now uses the OS' secret service to store the password. This means that, once you're logged in, you won't have to type the password anymore.
To disable this behavior, you need to either disable "Hamburger menu -> Settings -> Use Secret Service" or edit the config file (~/.config/otpclient.cfg
) and set use_secret_service=false
.
A simplified version of OTPClient is now available as CLI. Currently, only three operations are supported:
-
list
: this will print all pairs of account and issuer that are in the database -
show
: this will show the OTP for a given account/issuer. -
export
: this will export data in either one of the following format:andotp_plain
,andotp_encrypted
,freeotpplus
andaegis
You can call otpclient-cli help
to get more details on how to use the CLI