<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

      <title>Comments on: Setting up a password repository</title>
      <link>http://ask.metafilter.com/21073/Setting-up-a-password-repository/</link>
      <description>Comments on Ask MetaFilter post Setting up a password repository</description>
	  	  <pubDate>Tue, 12 Jul 2005 06:11:16 -0800</pubDate>
      <lastBuildDate>Tue, 12 Jul 2005 06:11:16 -0800</lastBuildDate>
      <language>en-us</language>
	  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
	  <ttl>60</ttl>

<item>
  	<title>Question: Setting up a password repository</title>
  	<link>http://ask.metafilter.com/21073/Setting-up-a-password-repository</link>	
  	<description>Let&apos;s say I wanted to create a simple web app to store my various usernames and passwords. The app and database would be hosted externally (by Dreamhost). I would use a secure connection for any HTTP stuff going back and forth, and I would encrypt all of the passwords before going into the db, and I can only extract and decrypt a password after entering a pass phrase that exists only in my brain. What would it take for someone else to get at my passwords? &lt;br /&gt;&lt;br /&gt; Dreamhost just added Ruby on Rails support, so I thought this would be a good project to get my feet wet with it. Does Ruby have nice encryption modules ready to go? Would there be more secure options going with PHP or Perl?&lt;br&gt;
&lt;br&gt;
[Alternatively, does anyone know of a web app like this? My searches turn up lots of junky-looking Windows programs.]</description>
  	<guid isPermaLink="false">post:ask.metafilter.com,2008:site.21073</guid>
  	<pubDate>Tue, 12 Jul 2005 05:55:57 -0800</pubDate>
  	<dc:creator>patgas</dc:creator>
	
	<category>security</category>
	
	<category>encryption</category>
	
	<category>passwords</category>
	
	<category>webapps</category>
	
	<category>webdev</category>
	
</item>
<item>
  	<title>By: andrew cooke</title>
  	<link>http://ask.metafilter.com/21073/Setting-up-a-password-repository#341300</link>	
  	<description>from just a crypto point of view, the problem these days is that any password you can keep in your brain is small enough to be guessed.&lt;br&gt;
&lt;br&gt;
in practice, the easiest way to get anything is usually social engineering (in broad terms).  so, for example, tricking you into entering your password at a fake page would be more likely than someone bothering to brute force your password (particularly since the same attack can be used against many, while cracking your password can be used only against you).&lt;br&gt;
&lt;br&gt;
the easiest technical crack i can see to your system is hacking the server it&apos;s hosted on and then altering the code so that it grabs your (global) password (at the client dialogue) and reports it back to the server.  that&apos;s quite interesting, in that it suggests that anyone with access to the server is in a position to know your passwords, so encrypting the passwords on the server, while certainly best practice, is giving you a false sense of security.&lt;br&gt;
&lt;br&gt;
(i&apos;m assuming you intend to do the decryption on the client, right?)</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.21073-341300</guid>
  	<pubDate>Tue, 12 Jul 2005 06:11:16 -0800</pubDate>
  	<dc:creator>andrew cooke</dc:creator>
</item>
<item>
  	<title>By: patgas</title>
  	<link>http://ask.metafilter.com/21073/Setting-up-a-password-repository#341325</link>	
  	<description>I hadn&apos;t thought of that, but I suppose I could do the encryption/decryption on the client. It seems like there&apos;s at least &lt;a href=&quot;http://home.zonnet.nl/MAvanEverdingen/Code/&quot;&gt;one library available&lt;/a&gt; for this.&lt;br&gt;
&lt;br&gt;
Is the risk significantly reduced by using something &lt;a href=&quot;http://passwordmaker.org/passwordmaker.html&quot;&gt;like this&lt;/a&gt; on my USB drive?</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.21073-341325</guid>
  	<pubDate>Tue, 12 Jul 2005 06:33:30 -0800</pubDate>
  	<dc:creator>patgas</dc:creator>
</item>
<item>
  	<title>By: andrew cooke</title>
  	<link>http://ask.metafilter.com/21073/Setting-up-a-password-repository#341355</link>	
  	<description>i was going to suggest the usb solution.  i think that&apos;s the standard way to do it, but (1) it doesn&apos;t give you a cool web project and (2) doing it on (inside) the client (browser) you might be able to automate the form-filling (so you don&apos;t need to copy + paste to get the info from the database into the browser).&lt;br&gt;
&lt;br&gt;
i think it&apos;s a cool project, but it&apos;s only as secure as your web host against a determined attacker.  in practice, if the project remained small, it would probably be fine.  if it became popular, then someone bothering to mod the code and hack a server to use the modded code becomes more likely.&lt;br&gt;
&lt;br&gt;
hang on - how would this work anyway?  you&apos;d download the javascript from your server, not from the site whose password you wanted to store.  so they would be in different pages and not be able to access each other (see previous discussions here on javascript security).  hmmm.  in that case, i don&apos;t see any advantage to doing this via the web, just disadvantages.&lt;br&gt;
&lt;br&gt;
sorry - it did seem like a cool idea.  maybe someone else will correct me.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.21073-341355</guid>
  	<pubDate>Tue, 12 Jul 2005 07:09:14 -0800</pubDate>
  	<dc:creator>andrew cooke</dc:creator>
</item>
<item>
  	<title>By: nicwolff</title>
  	<link>http://ask.metafilter.com/21073/Setting-up-a-password-repository#341509</link>	
  	<description>andrew cooke - you&apos;d put the Javascript in a bookmarklet that can access the current page, like &lt;a href=&quot;http://angel.net/~nic/passwd.html&quot;&gt;my password-generator bookmarklet&lt;/a&gt; does.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.21073-341509</guid>
  	<pubDate>Tue, 12 Jul 2005 09:38:57 -0800</pubDate>
  	<dc:creator>nicwolff</dc:creator>
</item>
<item>
  	<title>By: nicwolff</title>
  	<link>http://ask.metafilter.com/21073/Setting-up-a-password-repository#341510</link>	
  	<description>Whoops - that link is to the Web-page Javascript application - &lt;a href=&quot;http://angel.net/~nic/passwdlet.html&quot;&gt;here&apos;s the bookmarklet version&lt;/a&gt; that scans the current page for password fields and fills them in.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.21073-341510</guid>
  	<pubDate>Tue, 12 Jul 2005 09:40:36 -0800</pubDate>
  	<dc:creator>nicwolff</dc:creator>
</item>
<item>
  	<title>By: bobo123</title>
  	<link>http://ask.metafilter.com/21073/Setting-up-a-password-repository#341515</link>	
  	<description>You might want to take a look at how &lt;a href=&quot;http://www.hushmail.com/help-faqs2&quot;&gt;hushmail.com&lt;/a&gt; works. With hushmail your data is stored encrypted on the server, you go to the webpage and a java program grabs the data and decrypts it in the client. They use digital certificates so that if the java program is altered the certificate would change (I&apos;m not sure on how these are obtained and the feasability of a fake lookalike signature).&lt;br&gt;
&lt;br&gt;
There&apos;s nothing wrong with this system in theory... I guess the primary attack would be getting a keylogger on the client machine.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.21073-341515</guid>
  	<pubDate>Tue, 12 Jul 2005 09:47:54 -0800</pubDate>
  	<dc:creator>bobo123</dc:creator>
</item>
<item>
  	<title>By: andrew cooke</title>
  	<link>http://ask.metafilter.com/21073/Setting-up-a-password-repository#341565</link>	
  	<description>if you did it the bookmarklet way, then you wouldn&apos;t be able to contact the remote server, i believe (i&apos;m not an expert on browser security, at all, but there was a discussion on this a while back that concluded, iirc, that browser security makes it hard to mix information from more than one server on a page using javascript).&lt;br&gt;
&lt;br&gt;
hushmail&apos;s java solution works (i think, after a very brief look), because the java security model is more flexible - you can grant extra permissions.  with hushmail you may be vulnerable to the same attack i described earlier - if someone cracks the hushmail server and replaces the code then they can get your password.  however, since the java code is probably signed (as part of the java security model i just mentioned) that is significantly harder to do than in the javascript case - you also need the hushmail secret key used for signing, which they hopefully do not keep on their server.&lt;br&gt;
&lt;br&gt;
so java is a better solution because of the more complex security model.  again, this is just a guess (i do this kind of thing for a living, kind-of, but check with people smarter than me, and spend more time at it when i&apos;m being paid).</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.21073-341565</guid>
  	<pubDate>Tue, 12 Jul 2005 10:43:08 -0800</pubDate>
  	<dc:creator>andrew cooke</dc:creator>
</item>
<item>
  	<title>By: devilsbrigade</title>
  	<link>http://ask.metafilter.com/21073/Setting-up-a-password-repository#341590</link>	
  	<description>I wrote a program like this, although it didn&apos;t have a web interface. What I ended up doing was having a set-length file (mine was 512KB I think, although it might have been a meg) that username/password pairs were scattered into based on a hash. I kept two versions, one local &amp;amp; one remote, and when I&apos;d add a pair, I&apos;d make a patch file to the local one, then upload the patch &amp;amp; apply it remotely. If the timestamps were off, I&apos;d have to download a new one, but using patchfiles cut down on bandwidth. The patchfile is a security vunerability, because it&apos;s being transmitted and stored temporarily on the remote machine, and if the remote machine was compromised, rewriting the patch utility could give them the password. I only had 100mb/mo, and that seemed like a pain in the ass for the password to my Hotmail account, so I didn&apos;t bother. &lt;br&gt;
&lt;br&gt;
(For what its worth, I&apos;ve never written down any of my UNIX root passwords, only trivial web ones)</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.21073-341590</guid>
  	<pubDate>Tue, 12 Jul 2005 11:01:49 -0800</pubDate>
  	<dc:creator>devilsbrigade</dc:creator>
</item>
<item>
  	<title>By: andrew cooke</title>
  	<link>http://ask.metafilter.com/21073/Setting-up-a-password-repository#341686</link>	
  	<description>schneier is advocating that you &lt;a href=&quot;http://www.schneier.com/blog/archives/2005/06/write_down_your.html&quot;&gt;write passwords down&lt;/a&gt;.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.21073-341686</guid>
  	<pubDate>Tue, 12 Jul 2005 12:38:26 -0800</pubDate>
  	<dc:creator>andrew cooke</dc:creator>
</item>

    </channel>
</rss>
