Preface
In order to (pretend to) increase security your bank may have issued you an iTANCard (or something similar). To make things better worse, you might be forced to look up more than one hash value.
This is for demonstration purposes only! Do not use this with real bank data!
But you can use it for any hash table that is not about security. ;-)
Downloads
Goal
Make the phone remember the values you've already entered once; ask for any new once and store them for later use.
In this example we assume three values, separated by spaces. These will be copied from the browser to the clipboard. In this example I assume 3 values, separated by spaces. Starting a Task widget will process them, assist you in filling in unknown values, and store the result in the clipboard, ready to be pasted into the browser.
When the Query Action, Variable Set runs you're supposed to paste the contents of the clipboard into the Name field, without overwriting the %. Enter the value from the iTANCard into the To field.
Do not leave the Query Action screen - you might not get back to it!
Todo
Create a new task, name it Session-1TAN and enter these Actions:
- Variable Clear, %TAN_nrw
- Variable Set, %EINS, 1
- Variable Set, %TAN_VALUE,
# Read Line, /Tasker/TAN/%TAN_KEY, Line: %EINS, To Var: %TAN_VALUE - Variable Set, %TAN_NEW, 1, If %TAN_VALUE ~
# Vibrate, Time 1000, If %TAN_NEW ~ 1 - Flash, %TAN_KEY, Long, If %TAN_NEW ~ 1
- Set Clipboard, TAN_VALUE, If %TAN_NEW ~ 1
- Query Action, Variable Set, If %TAN_NEW ~ 1
- Write File, /Tasker/TAN/%TAN_KEY, %TAN_VALUE, If %TAN_NEW ~ 1
- Variable Set, %TAN_TEMP, %TAN_VALUE
- Variable Clear, %EINS
Create a new task, name it Session-Passwort and enter these Actions:
- Notifiy, TAN, Working…
- Variable Clear, %TAN_ALLE
- Variable Split, %CLIP
- Variable Set, %TAN_KEY, %CLIP1
- Variable Set, %TAN_TEMP,
# Perform Task, Session-1TAN - Wait Until, Seconds 1, Until %TAN_TEMP !~
# Variable Set, %TAN_ALLE, %TAN_TEMP, Append - Variable Set, %TAN_KEY, %CLIP2
- Variable Set, %TAN_TEMP,
# Perform Task, Session-1TAN - Wait Until, Seconds 1, Until %TAN_TEMP !~
# Variable Set, %TAN_ALLE, %TAN_TEMP, Append - Variable Set, %TAN_KEY, %CLIP3
- Variable Set, %TAN_TEMP,
# Perform Task, Session-1TAN - Wait Until, Seconds 1, Until %TAN_TEMP !~
# Variable Set, %TAN_ALLE, %TAN_TEMP, Append - Set Clipboard, %TAN_ALLE
- Variable Clear, %CLIP1
- Variable Clear, %CLIP2
- Variable Clear, %CLIP3
- Variable Clear, %TAN_KEY
- Variable Clear, %TAN_TEMP
- Variable Clear, %TAN_VALUE
- Variable Clear, %TAN_ALLE
- Variable Clear, %TAN_NEW
- Virbrate, 500
- Notifiy Cancel, TAN
Make a widget which runs Session-Passwort, create a directory called TAN inside the Tasker directory on the SD-card. Since this is the Expert section I will leave it up to you to find out how to do that.
Have fun and remember: This is for demonstration purposes only! Do not use this with real bank data!