1
0
mirror of https://github.com/gryf/softtoken.git synced 2025-12-19 20:38:02 +01:00
Miguel Angel Ajo 26920a30b2 Convert the otp value to ascii from unicode
Othersise the clipboard library fails in my system
because it's not expecting unicode.
2018-06-29 10:03:16 +02:00
2016-11-03 19:32:04 +01:00
2016-11-03 19:32:04 +01:00
2016-11-03 19:32:04 +01:00
2016-11-03 19:32:04 +01:00
2016-11-03 19:32:04 +01:00

SoftToken OTP is an application to generate One-Time-Passwords to be used as a second factor authentication mechanism. It can either print it when executed in the commandline or type it wherever your focus is. This can be especially useful when assigning a keybind to use your token.

Contents

1 Main features

  • Generate Time-Based One-Time Passwords

  • Multiple tokens support

  • Print OTP wherever the focus is (useful for keybindings)

2 Usage

Create a new token:

$ softtoken --new -t token1 --hash sha256 --digits 6

New Token created:

token1
-------------
Seed (hex): 337ad0410038666829c6446448d0a0d851938193
Seed (b32): GN5NAQIAHBTGQKOGIRSERUFA3BIZHAMT

Delete a token:

$ softtoken --delete -t token1
Token token1 successfully deleted

List tokens:

$ softtoken --list
[*] token1
[*] token2
[*] token3
[*] token4
[*] token5

Generate an OTP:

$ softtoken -t token1
630567

Generate an OTP and get it wherever your focus is:

$ softtoken -t token1 -X
630567

Generate an OTP and copy to clipboard (requires xclip):

$ softtoken -t token1 -C

3 TODO

  • Add HOTP support

  • Parametrize TOTP time

Description
One-Time Passwords Generator
Readme Pixar 108 KiB
Languages
Python 100%