title: How to implement "Two factor authentication" in iOS application?
body: <p>I am locking my Mac screen with my Mac app. As I enters password it needs to unlock. The password should be generated internally. So I preffered  to implement it by using "Two way factor authentication". By this my iPhone app generates a token frequently as I enters the token in Mac application it has to unlock.</p>
  
  <p>I found few APIs like  <a href="http://www.gauthify.com" rel="nofollow">Gauthify</a> and <a href="https://www.authy.com/" rel="nofollow">Authy</a>. But they are generating tokens on their own apps(ie.,to get token from authy we need to install authy app in our mobile). </p>
  
  <p>My requirement is without installing those apps,my app need to generate the token and communicate with my Mac.</p>
  
  <p>Please guide me if any one had done it. Good suggestions are appreciable. </p>