title: How to decode a cookie secret, set using Connect's cookieSession?
body: <p>I am setting a cookie using Connect's <code>cookieSession()</code>. This seems to encrypt the cookie's secret value, returning something like 's:j:{}.8gxCu7lVJHVs1gYRPFDAodK3+qPihh9G3BcXIIoQBhM'</p>
  
  <p>How do I decrypt the cookie's value? </p>
  
  <p>Example code:</p>
  
  <pre><code>app.use(express.bodyParser());
  app.use(express.cookieParser());
  
  app.get('/setcookie', function(req, res, next){
      res.app.use(express.cookieSession({ key: "test", secret: "test" }));
      console.log(req.cookies.test);
      res.end();
  });
  
  app.get('/', function(req, res, next){
      console.log(req.cookies.test);
      res.end();
  });
  </code></pre>