{"action":"closed","issue":{"url":"https://api.github.com/repos/bbangert/beaker/issues/21","labels_url":"https://api.github.com/repos/bbangert/beaker/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/bbangert/beaker/issues/21/comments","events_url":"https://api.github.com/repos/bbangert/beaker/issues/21/events","html_url":"https://github.com/bbangert/beaker/issues/21","id":5162985,"number":21,"title":"Encrypted cookies don't work in Python 3.2","user":{"login":"kiwidrew","id":1371113,"avatar_url":"https://avatars.githubusercontent.com/u/1371113?v=3","gravatar_id":"","url":"https://api.github.com/users/kiwidrew","html_url":"https://github.com/kiwidrew","followers_url":"https://api.github.com/users/kiwidrew/followers","following_url":"https://api.github.com/users/kiwidrew/following{/other_user}","gists_url":"https://api.github.com/users/kiwidrew/gists{/gist_id}","starred_url":"https://api.github.com/users/kiwidrew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kiwidrew/subscriptions","organizations_url":"https://api.github.com/users/kiwidrew/orgs","repos_url":"https://api.github.com/users/kiwidrew/repos","events_url":"https://api.github.com/users/kiwidrew/events{/privacy}","received_events_url":"https://api.github.com/users/kiwidrew/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2012-06-20T05:16:23Z","updated_at":"2015-02-25T17:20:58Z","closed_at":"2015-02-25T17:20:58Z","body":"It appears that none of the beaker.crypto code is ready for Python 3.  In particular, pbkdf2.py does a bunch of isinstance() checks which enforce that the encryption keys are 'str' objects, and calls encode() on them if not.  This is of course precisely backwards when working with str and bytes in Python 3.\n\nI've tried making a few patches to the code, but this only serves to reveal additional issues, and I don't have the time to prepare a complete patch for now.\n\nIn the meantime, please update the docs to indicate that encrypted cookies (that is, cookie-only sessions) are not supported when running under Python 3."}}