title: how to make encoded values for cookies? (python)
body: <p>I started using python to make an app with google app engine, right now i am using cookies to keep the sessions of each user in the site my current code for generating cookies is the following:</p>
  
  <pre><code>expires = datetime.datetime.utcnow() + datetime.timedelta(days=90) # expires in 30 days
  Cookie1 = Cookie.SimpleCookie()
  Cookie1["username"] = username
  Cookie1["username"]['expires'] = expires.strftime("%a, %d %b %Y %H:%M:%S GMT")
  Cookie2 = Cookie.SimpleCookie()
  Cookie2["password"] = password
  Cookie2["password"]['expires'] = expires.strftime("%a, %d %b %Y %H:%M:%S GMT")
  self.response.headers.add_header("Set-Cookie", Cookie1.output(header=''))
  self.response.headers.add_header("Set-Cookie", Cookie2.output(header=''))
  </code></pre>
  
  <p>The problem is that this way anyone can see the password and username values of those cookies, is there a way to encode those values so that only i know what those cookies are?</p>