When using tdna.getTypingPattern, what typing pattern type should I use?

The tdna.getTypingPattern offers options for three different typing patterns. 

Type 0 - the user will type different text during the enrollment and during each verification. The difference between type 0 and type 1 is that type 0 requires a minimum of 160 characters. This is also called an “any text” typing pattern.

Type 1 - this is used for the “same text” scenario, where the user will type the same text during the enrollment and during the verification. This will require a text that has a minimum 30 characters. 

Type 2 - is a more advanced feature and can work as both Type 0 or Type 1. It has a slightly higher accuracy and it will also record the keys that are typed. Type 2 is not recommended to be used when the typing pattern records private information, such as passwords and usernames. It should only be used when the user types a phrase that stores no secret information, such as: 

  • " I agree that all of this work is my own. " 
  • " We need you to type this to make sure it's you. " 

Again, Type 2 can be used as both Type 0 and Type 1 — just not at the same time. If a user is prompted to enroll with a text of 30 characters, then they will have to type the same text during the verification. The verification will fail if the user types a text of 30 characters during the enrollment and a different text of 160 characters during the verification. 

The Types of typing patterns tutorial provides examples of texts that should be used for each type of typing pattern.