generate google authenticator token value keystrokes Retrieve a google authenticator token seed from keychain and use this to calculate the current value Simulate keystrokes for this token value
written by Teun Vink github@teun.tv, converted to spoon by Tyler Thrailkill <snowe>
https://github.com/teunvink/hammerspoon
| Signature | Token.logger |
|---|---|
| Type | Variable |
| Description | Logger object used within the Spoon. Can be accessed to set the default log level for the messages coming from the Spoon. |
| Source | Source/Token.spoon/init.lua line 20 |
| Signature | Token.secret_key |
|---|---|
| Type | Variable |
| Description | String indicating the Keychain name of the Shared Key used in the OTP HMAC-SHA1 generation |
| Source | Source/Token.spoon/init.lua line 25 |
| Signature | Token:bindHotkeys(mapping) |
|---|---|
| Type | Method |
| Description | Binds hotkeys for Token |
| Parameters |
|
| Returns | |
| Source | Source/Token.spoon/init.lua line 77 |
| Signature | Token:get_token() |
|---|---|
| Type | Method |
| Description | Retrieves the token using an HOTP/TOTP Secret Key stored in the keychain |
| Parameters |
|
| Returns | |
| Source | Source/Token.spoon/init.lua line 65 |
| Signature | Token:token_keystroke() |
|---|---|
| Type | Method |
| Description | read a token secret key from keychain, generate a code and make keystrokes for it |
| Parameters |
|
| Returns | |
| Source | Source/Token.spoon/init.lua line 53 |