title: Authentication on website using smart card in python
body: <p>So I have a smart card provided by the company which looks like a credit card with a chip.
  This card  logins on a website after the card is inserted into the card reader.</p>
  
  <p>Now I have to write a program in python which can read the card and login on that website using <code>Requests</code> module.
  I tried to find out how to retrieve this authentication data from the card using python script and then use this data but I am partially successful. I installed the <code>pyscard</code>:</p>
  
  <pre><code>from smartcard.System import readers
  from smartcard.util import toHexString
  
  r=readers()
  print(r)
  
  connection = r[0].createConnection()
  connection.connect()
  SELECT = [0xA0, 0x88, 0x00, 0x00] # CLA, INS, P1, P2
  DF_TELECOM = [ 0x02, 0x7F, 0x10]  # Lc, Data, Le
  data, sw1, sw2 = connection.transmit( SELECT + DF_TELECOM )
  </code></pre>
  
  <p>So far I am able to transmit data and retrieve some data from card.
  I sent the command 88 in INS <strong>(Source : ISO 7816)</strong> which is for some sort of internal authentication( I assume this authentication data is used to login on the website)  but I get below response : </p>
  
  <pre><code>data = []
  sw1 = 110
  sw2 = 00
  </code></pre>
  
  <p>I couldn't find the meaning of  this response in ISO 7816. Can somebody tell me whether I have the right approach or hint to proceed further from here? In short, i want to know how to login on the website using python script and smart card?</p>