﻿iTanMaster - (c) 2009..2014 Theo Beisch (theo.beisch_at_gmx.de) 
Feel free to modify or distribute, just leave the credits

************** UPDATES / CHANGES ***********************
12/06/2014  - Fixed IP autotype problem (javaw was getting Return too early)
			  by ensuring CLR /Win to consume Return and delay key entry by 500mS 
			- Added plugin Revision number to show on windows form

11/07/2014	- Added support for FlatexCH 1..10 / A..H / single token

03/01/2012	- Added support for broker Flatex AG (Germany)
			- The code now parses indexes from a single text
			box, blank delimits the individual tokens
			- (IB) Removed space as delimiter between tokens
			(website account access chokes on space between tokens)

*************************************************************

iTans or 'indexed security tokens' are becoming standard to improve access security in 
online banking and similar applications.

iTanMaster installs as a KeePass plugin and provides easy access to the encrypted storage 
of indexed security tokens.

iTanMaster supports single or dual token systems (presently Interactive Brokers and Flatex) where the final 
token is constructed from two separately indexed and then concatenated token parts.

In order to enable iTanMaster token selection the following conditions need to be met:

- iTanMaster needs to be loaded (ITanMaster.dll resides in KeePass working directory, 
  matches the KeePass version, KeePass Version > 2.07, ....)
- [optional - depending on your safety requirements] the website or application primary 
  access key (for the 1st logon step) may be stored and configured according to KeePass 
  window recognition rules. 
  (The iTanWizard will generate an entry with button 'Store access entries' - this entry 
  (if desired) needs to be configured by the user (username/password/window-identification))
- a special access key titled <ITAN2> MUST be present in the group. 
  This key will be used to identify the respective iTan entry window and then intercept 
  the credentials creation so that iTanMaster can ask the user for a single (entry title = '<ITAN2>'), 
  two (entry title = '<ITAN2>InteractiveBrokers') or three indices (<ITAN2>Flatex) to access the stored / encrypted iTan tokens.
  (The iTanWizard can generate the <ITAN2> or <ITAN2>(InteractiveBrokers/Flatex) entries with 
  'Store access entries').
  The entry needs to be configured by the user to support window-identification.
- iTans and access keys need to be stored in the same KeePass entry key group. 

  The iTanWizard currently supports 4 iTan import modes:
  InteractiveBrokers (IB), Flatex, Card and Sequential.

  IB and Card: This mode is useful in case input data is sequenced in columns and possibly on multiple pages. 

  IB only: the preset is 2 pages, 16 lines and 7 columns. Also (IB), the step 2 database entry (by button 'Store Access Entries') 
  is generated as an <ITAN2>2 for dual token support.

  Flatex: the preset is 1 page, 11 lines (A..M) and 9 columns (1..9). Also (Flatex), the step 2 database entry (by button 'Store Access Entries') 
  is generated as an <ITAN2>2 for token support.

  FlatexCH: the preset is 1 page, 10 lines (1..10) and 8 columns (A..H). Also (FlatexCH), the step 2 database entry (by button 'Store Access Entries') 
  is generated as an <ITAN2>2 for token support.

  Sequential: Parsing wil process the input text line by line, tokens separated by ' ' (space), 
  leading and trailing whitespace is trimmed. 
  
  You can also opt to import the iTANs marked as 'onetime use' - 
  KeePass and iTanMaster will mark the tokens so that they will be expired if used.
  
As a note: for large amounts of tokens, using a scanner and OCR software had proven quite efficient. 
Visual verification is recommended though! (SimpleOCR - www.simpleocr.com - worked nicely for me).

I recommended to generate and store the primary and secondary access keys first, 
using the iTanWizard ('Store Access Entries') and manually configuring the remaining details. 
This ensures those keys will be positioned on top of the list.
