title: inserting all permutations of letters into sqlite
body: <p>I want insert all possible 3 digits permutations in my list of characters with their Hash Values into Sqllite.Can any body help me fixing this piece of code: Besides, i am using sqliteexpert with a Cryptable with 2 fields : 1) PlainText and 2) Md5Hash, it same as sqlite3 to import as the code?</p>
  
  <p>I tried:</p>
  
  <pre><code>import hashlib
  m = hashlib.md5()
  import sqlite3
  conn = sqlite3.connect('pr.db')
  c = conn.cursor()
  #print hashlib.md5("a").hexdigest()
  mylist =[1,"A",3,"B",5,6,7,8,9,10]
  print len(mylist)
  
  for i in range(len(mylist)):
  print hashlib.md5(str(mylist[i])).hexdigest()
  c.execute('insert into Cryptable values (i)' , hashlib.md5(i))
  connection.commit()
  for j in range(len(mylist)):
  c.execute('insert into Cryptable values (j)' , hashlib.md5(j))
  connection.commit()
  for k in range(len(mylist)):
  c.execute('insert into Cryptable values (k)' , hashlib.md5(k))
  connection.commit()
  </code></pre>