title: How to read an encrypted Chrome cookie from local file
body: <p>I'm trying to read the local cookies file for Google Chrome, which is located at <code>C:\Users\usr\AppData\Local\Google\Chrome\User Data\Default\Cookies</code> and can be read using sqlite3 in Python. I can then get the encrypted value in Python using <code>sqlite3</code> by doing the following:</p>
  
  <pre><code>import sqlite3
  conn = sqlite3.connect(r'C:\Users\usr\AppData\Local\Google\Chrome\User Data\Default\Cookies')
  c = conn.cursor()
  c.execute("SELECT encrypted_value FROM 'cookies' WHERE name = &lt;some name&gt;")
  val = c.fetchall()
  </code></pre>
  
  <p>The normal value for this cookie is a blank <code>TEXT</code>, and the <code>encrypted_value</code> is a <code>BLOB</code> data type. I was looking for what <code>BLOB</code> is and it looks like it's just a big binary piece of data that is encrypted. Looking more into this, I think I found that Chrome uses triple DES encryption. Is there any way I can decrypt this from my computer using Python?</p>