<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title><![CDATA[LinLog]]></title>
    <link>https://linlog.skepticats.com/</link>
    <description><![CDATA[Linux, Programming, and Computing in General]]></description>
    <lastBuildDate>2022-09-16T16:00:22+00:00</lastBuildDate>
    <managingEditor>pageer@skepticats.com (Peter Geer)</managingEditor>
    <language>en-US</language>
    <generator>https://lnblog.skepticats.com/?v=2.2.0</generator>
    <item>
      <title><![CDATA[I don't get NFT]]></title>
      <link>https://linlog.skepticats.com/entries/2021/03/i-dont-get-nft.php</link>
      <description><![CDATA[<p>I only recently learned about the existence of NFTs as a "thing".&nbsp; If you are also unfamiliar, NFT stands for "Non-Fungible Token".&nbsp; <a href="https://www.cnn.com/2021/03/17/business/what-is-nft-meaning-fe-series/index.html">CNN has an explanation here</a>, but t's essentially a unique digital token, stored on a blockchain, that represents some digital asset.&nbsp;&nbsp;Apparently NFTs have recently become the latest hot trend, with some of them selling for hundreds of thousands of dollars.&nbsp;&nbsp;</p>
<p>However, <a href="https://news.slashdot.org/story/21/03/29/2343254/why-peoples-expensive-nfts-keep-vanishing">this Slashdot post</a> points out that there are some potential issues with NFTs.&nbsp; Basically, NFTs don't actually <em>store</em> the asset you're purchasing.&nbsp; So if you buy an NFT for an image, the image doesn't actually live on the blockchain.&nbsp; You've only bought a&nbsp;<em>reference</em> to the image, which is actually hosted someplace else.&nbsp; So if whatever server or service is hosting that image goes away, you will no longer be able to access it, regardless of owning the NFT.</p>
<p>So I guess what I'm confused about is: what's the point?&nbsp; I mean, what are you really getting when you buy an NFT?&nbsp; In a theoretical sense, I can see how an NFT is better than "conventional" digital assets in that it's not tied to a particular service.&nbsp; Your ownership of that item is recorded in you crypto wallet which is independent of any particular service an can be used with multiple NFT marketplaces.&nbsp; And that's a good thing.&nbsp;</p>
<p>But when you look at it <em>functionally</em>, there's not really much difference.&nbsp; The actual asset still exists completely independent of the blockchain, so it's not like a&nbsp;<em>physical</em> asset - there might only be one token, but you can still infinitely duplicate the asset.&nbsp; And as far as I can tell, buying an NFT doesn't actually mean you're purchasing the copyright for the asset.&nbsp; So you're just buying a copy and there's nothing to stop anyone from making other copies.&nbsp; And because the asset isn't stored on the blockchain, if you want to ensure you always have access then you need to download a copy of it.&nbsp; So...how is this different from buying a service-specific digital asset?</p>
<p>It seems like the point is less the actual asset and more that NFT is the same thing as Bitcoin - that it's just a different way to speculate on blockchain stuff.&nbsp; Especially when you're talking about something like spending $2.5 million for jack Dorsey's first tweet, it's hard to see any other rational explanation.&nbsp; But even for less absurd cases, it's not clear to me what the practical benefit is.&nbsp; The main reason that blockchain "works" for cryptocurrency is because the thing on the blockchain <em>is</em> the thing you're transferring.&nbsp; As soon as you introduce a disconnect between the thing being traded and the thing on the blockchain, it seems like you lose a lot of the benefit of the blockchain.&nbsp;&nbsp;</p>]]></description>
      <author><![CDATA[pageer@skepticats.com (Peter Geer)]]></author>
      <pubDate>Tue, 30 Mar 2021 13:55:01 +0000</pubDate>
      <category><![CDATA[Industry]]></category>
      <category><![CDATA[Security]]></category>
      <category><![CDATA[Web]]></category>
      <guid isPermalink="true">https://linlog.skepticats.com/entries/2021/03/i-dont-get-nft.php</guid>
      <comments>https://linlog.skepticats.com/entries/2021/03/30_0955/comments/</comments>
    </item>
    <item>
      <title><![CDATA[Thinking about DNS over HTTPS]]></title>
      <link>https://linlog.skepticats.com/entries/2020/04/Thinking_about_DNS_over_HTTPS.php</link>
      <description><![CDATA[<p>I read an interesting article on the <a href="https://www.zdnet.com/article/dns-over-https-causes-more-problems-than-it-solves-experts-say/">drawbacks of DNS over HTTPS (DoH)</a> the other day.&nbsp; This comes on the heels of the news that Mozilla is <a href="https://www.schneier.com/blog/archives/2020/02/firefox_enables.html">rolling out DoH to all Firefox users by default</a>.&nbsp;</p>
<p>I'd never really thought too much about DoH.&nbsp; In general, more encryption is usually better, so my initial thought was "it's probably a good thing", but that's about as deep as it went.&nbsp; After reading a little more about the down sides, I'm less convinced.&nbsp; I still think it's a probably good thing that DoH exists, but I'm note so sure that it's a good idea to push everyone toward it.</p>
<p>My main reservation at this point is that DoH seems architecturally wrong.&nbsp; It introduces a way to do DNS queries that's not&nbsp;<em>really</em> compatible with the old way and it's not clear to me that it offers any really&nbsp;<em>big</em> wins.</p>
<p>Of course, I'm not saying that DoH has no benefits or use-cases.&nbsp; There are definitely cases where it can be useful and add another layer of privacy.&nbsp; But it kind of reminds me of PHP "security" features like <a href="https://www.php.net/manual/en/features.safe-mode.php">safe_mode</a> in the sense that it does solve a legitimate problem, and does so in a way that "works" (for certain definitions of "works"), but solves it at the wrong layer and in a way that can interfere with other legitimate things.</p>
<p>As this <a href="https://blog.powerdns.com/2019/09/25/centralised-doh-is-bad-for-privacy-in-2019-and-beyond/">blog from the PowerDNS team discusses</a>, DoH is not a panacea in terms of privacy.&nbsp; Yes, it adds a layer of encryption, and that is definitely useful in some cases.&nbsp; But it doesn't do anything to address the myriad other ways in which your online activity can be tracked.</p>
<p>Of course, that depends very much on whom you want to stop from tracking you.&nbsp; Obviously it does zero to stop advertisers or website operators from tracking you - they do their tracking at a much higher level.&nbsp; It also doesn't stop your ISP from tracking you - even if everything else is encrypted, you <em>can't</em> stop your ISP from knowing the IP addresses you visit.&nbsp; I mean, that's just how the web works.&nbsp; And from an IP address, you can usually determine the website pretty easily.&nbsp; And, of course, your DoH provider still has access to all your DNS requests, so you better make sure you trust them.</p>
<p>For me, personally, the bottom line is that DoH doesn't give you anything that you don't already get with a half-way decent VPN provider.&nbsp; Granted, the VPN provider is then your single point of privacy failure, so you better make sure you pick a reputable on (I like and recommend <a href="https://www.privateinternetaccess.com">Private Internet Access</a>).&nbsp; But a VPN covers pretty much everything you can do at the network level, not just DNS for web requests.&nbsp; Of course, you still need browser privacy plugins to block tracking at higher levels in the stack, but sadly that's necessary either way.</p>]]></description>
      <author><![CDATA[pageer@skepticats.com (Peter Geer)]]></author>
      <pubDate>Sat, 25 Apr 2020 22:01:17 +0000</pubDate>
      <category><![CDATA[Networking]]></category>
      <category><![CDATA[Security]]></category>
      <category><![CDATA[Firefox]]></category>
      <guid isPermalink="true">https://linlog.skepticats.com/entries/2020/04/Thinking_about_DNS_over_HTTPS.php</guid>
      <comments>https://linlog.skepticats.com/entries/2020/04/25_1801/comments/</comments>
    </item>
    <item>
      <title><![CDATA[New browser plugins for KeePass]]></title>
      <link>https://linlog.skepticats.com/entries/2019/12/New_browser_plugins_for_KeePass.php</link>
      <description><![CDATA[<p>Almost three years ago I wrote a post about <a href="../../entries/2017/02/KeePass_browser_plugins.php">setting up a browser plugin for KeePass</a>.&nbsp; That plugin was&nbsp;<a href="https://github.com/pfn/passifox">chromeIPass</a> and it worked pretty darn well.</p>
<p>Now fast-forward to a few months ago.&nbsp; My wife's laptop broke down and I had to re-install Windows on it.&nbsp; In the process, I tried to set up chromeIPass and discovered that it's dead!&nbsp; Well, mostly dead, anyway.&nbsp; It's open-source, and the source is still available, but it's no longer available in the Chrome app store.&nbsp; So it's effectively dead.</p>
<p>So I started looking for alternatives.&nbsp; The good news is that there's a fork of chromeIPass called <a href="https://github.com/smorks/keepasshttp-connector">KeePassHTTP-Connector</a>. That still exists <a href="https://chrome.google.com/webstore/detail/keepasshttp-connector/dafgdjggglmmknipkhngniifhplpcldb">in the Chrome store</a>.&nbsp; However, it's <em>also</em> been discontinued!&nbsp; Apparently it's deprecated in favor of <a href="https://github.com/keepassxreboot/keepassxc-browser">KeePassXC-Browser</a> which is a similar plugin for KeePassXC.&nbsp; Apparently KeePassXC is a cross-platform re-implementation of KeePass.&nbsp; I'm not sure why that's needed, since KeePass is written in C# and runs under Mono, and .NET core is now cross-platform anyway, but whatever.&nbsp; The one nice thing about that browser plugin is that it uses a <a href="https://github.com/smorks/keepassnatmsg">KeePassNatMsg</a> plugin to communicate with KeePass.&nbsp; Apparently that's more secure because it doesn't involve talking over HTTP.&nbsp; But apparently it doesn't work correctly with "real" KeePass.&nbsp; At least, it didn't for me - the plugin segfaulted when I tried to configure it.</p>
<p>Luckily, I did find a currently supported plugin that actually seems fairly good - Kee.&nbsp; This is actually intended for a separate password manager, also called Kee, which I gather is some kind of paid service based on KeePass.&nbsp; (Or something.&nbsp; To be honest, I didn't really look into it - I only cared about the browser plugin.)&nbsp; The Kee plugin is based on the old KeeFox plugin for Firefox, but this one also runs in Chrome.&nbsp; It uses the KeePassRPC plugin for communication with KeePass.</p>
<p>If you used KeeFox in the past, this plugin is equally painless to use and configure.&nbsp; Just install the KeePassRPC plugin, fire up KeePass, and install the browser plugin.&nbsp; Kee will automatically attempt to connect to the RPC server and KeePass will prompt you to authorize the connection by bringing up a window with an authorization code.&nbsp; Just enter that code into the window that Kee opens and click "connect".&nbsp; Done!&nbsp; Now when you visit a site that's in your KeePass database, Kee will put icons you can click in the login boxes and auto-populate the login form.&nbsp; (The auto-population can be turned off - the convenience of that functionality is fantastic, but the security is iffy.)</p>
<p>So at least there's still a good, supported KeePass browser plugin out there.&nbsp; I suppose this is one of the pitfalls of "roll your own" systems based on open-source software.&nbsp; Since KeePass doesn't bundle a browser plugin, like many of the proprietary password managers do, we're forced to rely on the community, which can be both good and bad.&nbsp; The bad comes when the "community" is basically one guy who eventually loses interest.&nbsp; And while it's great that the source is there for anyone to pick up, it's important to recognize that adopting a new software project requires a substantial time commitment.&nbsp; Free software is free as in "free puppy", not "free beer".</p>]]></description>
      <author><![CDATA[pageer@skepticats.com (Peter Geer)]]></author>
      <pubDate>Sat, 21 Dec 2019 23:23:12 +0000</pubDate>
      <category><![CDATA[Tools]]></category>
      <category><![CDATA[Software]]></category>
      <category><![CDATA[Security]]></category>
      <guid isPermalink="true">https://linlog.skepticats.com/entries/2019/12/New_browser_plugins_for_KeePass.php</guid>
      <comments>https://linlog.skepticats.com/entries/2019/12/21_1823/comments/</comments>
    </item>
    <item>
      <title><![CDATA[A different take on password managers]]></title>
      <link>https://linlog.skepticats.com/entries/2019/07/A_different_take_on_password_managers.php</link>
      <description><![CDATA[<p>I've posted <a href="../../entries/2019/07/Yup_password_expiration_is_dumb.php">several</a> <a href="../../entries/2019/05/Security_passwords_and_end_users.php">entries</a>&nbsp;<a href="../../entries/2017/02/KeePass_browser_plugins.php">in</a> <a href="../../entries/2017/02/Using_KeePass.php">the</a> <a href="../../entries/2014/02/Getting_a_password_manager.php">past</a> about the benefits of password managers.&nbsp; Well, I just read a very interesting article that also detailed <a href="https://medium.com/@stuartschechter/before-you-use-a-password-manager-9f5949ccf168">some of the risks of password managers</a>.</p>
<p>The article is by a security professional who offers a very good take on some of the aspects of password management that I've rarely considered.&nbsp; For instance, using a password manager can very much entail putting all your eggs in one basket.&nbsp; For instance, what if you get malware that steals your master password?&nbsp; What if you <em>forget</em> the password?&nbsp; That might seem far-fetched, but you never know - you could hit your head, have a stroke, or any number of things.&nbsp; So in addition to security, there are things like recovery strategy to consider.</p>
<p>While I've been guilty of making blanket statements that "everybody should use a password manager," I now see that that's a mistake.&nbsp; I still believe password managers are a very good for many, if not <em>most</em> people, but it needs a more nuanced assessment.&nbsp; Depending on your risk profile and tolerance, you might want to avoid putting all your eggs.&nbsp; You might want to avoid password managers altogether, or use them only for low-value, or perhaps use multiple password vaults to partition things by importance.</p>
<p>The point is that security is not a one-size-fits-all thing.&nbsp; There are lots of use-cases and it's important not to get stuck in thinking that yours is the only one or even the most common or important one.&nbsp; Consider the situation and the trade-offs involved before making a decision or recommending a course of action to others.</p>]]></description>
      <author><![CDATA[pageer@skepticats.com (Peter Geer)]]></author>
      <pubDate>Fri, 12 Jul 2019 22:10:51 +0000</pubDate>
      <category><![CDATA[Security]]></category>
      <category><![CDATA[Software]]></category>
      <guid isPermalink="true">https://linlog.skepticats.com/entries/2019/07/A_different_take_on_password_managers.php</guid>
      <comments>https://linlog.skepticats.com/entries/2019/07/12_1810/comments/</comments>
    </item>
    <item>
      <title><![CDATA[Yup, password expiration is dumb]]></title>
      <link>https://linlog.skepticats.com/entries/2019/07/Yup_password_expiration_is_dumb.php</link>
      <description><![CDATA[<p>I posted an <a href="../../entries/2019/05/Security_passwords_and_end_users.php">entry a while back</a> about passwords.&nbsp; Well, turns out that Microsoft is no longer recommending rotating your passwords and is <a href="https://blogs.technet.microsoft.com/secguide/2019/05/23/security-baseline-final-for-windows-10-v1903-and-windows-server-v1903/">removing the password expiration policies</a> from Windows.</p>
<p>So yup, I was right.</p>
<p>But really, what was the point of always changing your passwords anyway?&nbsp; Well, I guess it does mitigate against the possibility that a re-used password has been compromised somewhere else.&nbsp; But what's the cost?&nbsp; Users can never remember their passwords.&nbsp; And since coming up with a good, memorable password is hard, they're not going to put in the effort. Instead, they'll come up with some pattern that meets the minimum complexity requirements and just cycle through it.&nbsp;</p>
<p>Is this better?&nbsp; I'm no expert, but it's not clear to me that it is.If you want extra protection, there are better ways to get it.&nbsp; For example, setting up two-factor authentication.&nbsp; That's also a bit of a pain for users, but at least it provides more real protection.</p>
<p>And on a semi-related side-note, I'd like to point out <a href="https://github.com/PhilippC/keepass2android">KeepassAndroid</a> now integrates with Firefox Mobile.&nbsp; I've mentioned this app in some <a href="../../entries/2017/02/Using_KeePass.php">previous</a> <a href="../../entries/2014/02/Getting_a_password_manager.php">posts</a> about KeePass.&nbsp; I do a lot of my non-work web browsing on my phone these days, so this app is really a necessity for me.&nbsp; This new integration is really nice because it means I can now get the same user experience on both my laptop and my phone.&nbsp; I just tap on the login box and get promoted to auto-fill the form.&nbsp; Perfect!</p>]]></description>
      <author><![CDATA[pageer@skepticats.com (Peter Geer)]]></author>
      <pubDate>Fri, 05 Jul 2019 18:13:20 +0000</pubDate>
      <category><![CDATA[Software]]></category>
      <category><![CDATA[Security]]></category>
      <guid isPermalink="true">https://linlog.skepticats.com/entries/2019/07/Yup_password_expiration_is_dumb.php</guid>
      <comments>https://linlog.skepticats.com/entries/2019/07/05_1413/comments/</comments>
    </item>
    <item>
      <title><![CDATA[Security, passwords, and end users]]></title>
      <link>https://linlog.skepticats.com/entries/2019/05/Security_passwords_and_end_users.php</link>
      <description><![CDATA[<p><em><strong>Note:</strong> I started this entry two years ago and it's been sitting in my drafts folder ever since.&nbsp; However, while the links might not be news anymore, the underlying issue is the same.&nbsp; So I cleaned it up for another From The Archives entry.</em></p>
<p>A while back, there <a href="http://gizmodo.com/the-guy-who-invented-those-annoying-password-rules-now-1797643987">was a story going around</a> about how the guy who invented the password strength rules that you see all over the web now regrets it. &nbsp;That made me think about how we approach these kinds of issues and the advice we give to non-technical users.</p>
<p>Security is one of those areas of computing where there are a lot of <a href="https://en.wikipedia.org/wiki/Cargo_cult">cargo cults</a>. &nbsp;Relatively few people, even among IT professionals, seem to have a good handle on how to secure their systems. &nbsp;So they rely on guidelines like these from the "experts", often following them blindly without any real understanding of the rationale.</p>
<p>And you can't really blame them - security is hard. &nbsp;Even knowing <em>what</em> you need to defend against can be a tall order. &nbsp;And with some of the biggest companies in the world being compromised left and right (for example, the <a style="outline-width: 0px !important; user-select: auto !important;" href="https://krebsonsecurity.com/2017/09/breach-at-equifax-may-impact-143m-americans/">Equifax hack</a>, which should scare the heck out of you if it doesn't already), it's clear that this is not a resource problem that you can just buy your way out of. &nbsp;<a href="https://www.nytimes.com/2016/12/14/technology/yahoo-hack.html">Not even big tech companies</a> are immune, so what chance does the average user have?</p>
<p>Well, unfortunately, for things like the Equifax breach, the average user doesn't have much to say about it. &nbsp;Once a third-party has your personal information, you really have no choice but to rely on them to secure it. &nbsp;And if they don't do a good job, well...you're sorta just out of luck. &nbsp;I mean, you can always sue them, but let's be realistic: for private individuals, the amount of time and money required to do that is prohibitive. &nbsp;It's cheaper and less painful to just absorb the loss and get on with your life.</p>
<p>Passwords are a different story, though. &nbsp;Those are one of the few pieces of security that are (mostly) under the control of the user. &nbsp;So we as professionals&nbsp;<em>can</em> offer some guidance there. &nbsp;And if the <a href="https://en.wikipedia.org/wiki/List_of_the_most_common_passwords">top passwords</a> revealed from various database breaches are any indication, we&nbsp;<em>should</em> offer some.</p>
<p>These days, there's really only one piece of advice that matters: <a style="outline-width: 0px !important; user-select: auto !important;" href="https://linlog.skepticats.com/entries/2019/05/11_0952/../../../2017/02/Using_KeePass.php">get a password manager</a> and use it for everything.&nbsp; I like KeePass, but 1Password, LastPass, and a number of other good programs are available.&nbsp; These days we all have more website logins than we can realistically remember, so it's impossible to follow the old advice of using strong passwords AND not reusing them AND not writing them down.&nbsp; By using a password manager, we compromise on the "not writing it down" part and write down our passwords&nbsp;<em>securely</em> so that we can keep them strong and unique without making our lives difficult.</p>
<p>Of course, there will always be a few passwords that you just need to remember.&nbsp; For instance, the master password for your password manager.&nbsp; For these, the standard advice is to use long passwords containing number, letters, and special characters.&nbsp; Probably the easiest way to do this and still keep the password memorable is to use a pass<em>phrase</em>.&nbsp; So rather than one word, use a short phrase containing several words and insert some punctuation or other special characters.&nbsp; For example, the password&nbsp;<code style="border: 1px dotted black;">Bob has _17_ "Cats"!</code> isn't <em>that</em> hard to remember, but it's 20 characters long and&nbsp; contains letters, numbers, capital and lower-case letters, punctuation, and spaces.&nbsp; Yeah, it's harder to type and remember than "12345", but it's way easier than something like "UD09BhbjH7" <em>and</em> it fulfills the complexity requirements.</p>
<p>For more important accounts, you can also do things like enabling two-factor authentication, which adds another layer of security.&nbsp; Typically this involves sending a code to your phone via text message or an app like Google Authenticator and entering that when you log in.&nbsp; Even this isn't fool-proof (see <a href="https://krebsonsecurity.com/2019/05/nine-charged-in-alleged-sim-swapping-ring/">SIM swapping scams</a>), but it's one more hoop that someone trying to access your account has to jump through.</p>
<p>So forget the annoying rules about changing passwords every month and things like that.&nbsp; Pick a handful of good passwords for the stuff you really need to type out and just use a password manager for everything else.&nbsp; There's no reason to remember a bajillion obscure bits of information if you don't need to.&nbsp; After all, that's why we have computers in the first place.</p>]]></description>
      <author><![CDATA[pageer@skepticats.com (Peter Geer)]]></author>
      <pubDate>Sat, 11 May 2019 13:52:48 +0000</pubDate>
      <category><![CDATA[Security]]></category>
      <category><![CDATA[Web]]></category>
      <category><![CDATA[From the Archives]]></category>
      <guid isPermalink="true">https://linlog.skepticats.com/entries/2019/05/Security_passwords_and_end_users.php</guid>
      <comments>https://linlog.skepticats.com/entries/2019/05/11_0952/comments/</comments>
    </item>
    <item>
      <title><![CDATA[Electronic voting]]></title>
      <link>https://linlog.skepticats.com/entries/2018/08/Electronic_voting.php</link>
      <description><![CDATA[<p>This <a title="Voting software" href="https://xkcd.com/2030/">XKCD comic</a> pretty much sums up my reaction every time someone mentions electronic voting.&nbsp; I usually explain it with an analogy involving Scotch tape and bubble gum, but same idea.</p>
<p>As a side-note, there's an interesting response to this <a title="That XKCD on voting machine software is wrong" href="https://blog.erratasec.com/2018/08/that-xkcd-on-voting-machine-software-is.html">here</a>.&nbsp; The criticism, essentially, is that the comic is comparing apples to oranges.&nbsp; For aircraft and elevators we're mostly concerned about&nbsp;<em>accidental</em> failures, whereas for voting machines the issue is protecting against&nbsp;<em>intentional attacks</em>.&nbsp; So planes and elevators are only considered "safe" because we're not counting "being blown up" as a valid scenario that they need to defend against.</p>
<p>That's a fair criticism, but that's not really the point. When I hear regular, non-techie people talking about "computerize voting", they're not interested in the electronic replacements for old mechanical voting machines.&nbsp; They're interested in voting online, like you'd vote in poll on Facebook.&nbsp; That's a very different problem than securing a computerized voting machine, and much harder to solve.</p>
<p style="text-align: center;"><img src="https://imgs.xkcd.com/comics/voting_software.png" alt="" width="602" height="606" /></p>]]></description>
      <author><![CDATA[pageer@skepticats.com (Peter Geer)]]></author>
      <pubDate>Wed, 22 Aug 2018 00:03:41 +0000</pubDate>
      <category><![CDATA[Security]]></category>
      <category><![CDATA[Industry]]></category>
      <guid isPermalink="true">https://linlog.skepticats.com/entries/2018/08/Electronic_voting.php</guid>
      <comments>https://linlog.skepticats.com/entries/2018/08/21_2003/comments/</comments>
    </item>
    <item>
      <title><![CDATA[KeePass browser plugins]]></title>
      <link>https://linlog.skepticats.com/entries/2017/02/KeePass_browser_plugins.php</link>
      <description><![CDATA[<p>In my <a href="https://linlog.skepticats.com/entries/2017/02/Using_KeePass.php">last post about KeePass</a>, I mentioned that you can integrate your KeePass password database with your web browser. &nbsp;In this post, I'll&nbsp;tell you more about how to do that and why it's an extremely handy thing.</p>
<h3>Why bother?</h3>
<p>So why would you want to bother with integrating your browser with KeePass? &nbsp;I mean, most browsers have a feature to remember your passwords anyway, so why not just use that? &nbsp;Or if you want to use KeePass, why not just use that auto-type feature I talked about in the last post?</p>
<p>It's true, you could just use the password manager that's built into your browser. &nbsp;Pretty much all of them have one, these days. &nbsp;Most of them will even secure your data with a master password. &nbsp;They may even synchronize your passwords to the cloud, so you can access them on more than one device. &nbsp;Granted, that's pretty handy.</p>
<p>However, browser password managers generally&nbsp;<em>just</em> do passwords - they don't allow you to enter extra information or attach files like KeePass does. &nbsp;They also don't work for things outside the web browser, like for security software such as <abbr title="Virtual Private Network - used to securely access a remote network, e.g. so you can work from home.">VPN</abbr> clients. &nbsp;So they don't provide you with a single, secure location for all your important account information. &nbsp;But more importantly, they're generally tied to a single browser. &nbsp;Sure, Google Chrome can store and synchronize all my passwords, but what if I decide I don't like Chrome anymore? &nbsp;Maybe I&nbsp;just bought a Mac and decided I really like Safari. &nbsp;Is there an easy way to get my passwords out of one browser and into another? &nbsp;I don't know. &nbsp;</p>
<p>By using KeePass with a plugin for your browser, you can get the best of both worlds. &nbsp;KeePass itself gives you more power and features than browser password managers and&nbsp;allows&nbsp;keeps you from being tied to a single browser. &nbsp;Using a browser integration plugin adds on the ability to have the browser automatically fill in your username and password when you visit a website. &nbsp;It's not&nbsp;<em>quite</em> as convenient as the browser-integrated password managers, but it still pretty good. &nbsp;And it's definitely a lot easier than trying to use auto-type or copy-and-paste to fill in password forms.</p>
<h3>What are my options?</h3>
<p>In general, there are a lot of plugins available for KeePass. &nbsp;Just look at <a href="http://keepass.info/plugins.html">the list</a>. &nbsp;Or maybe don't - you probably don't care about 90% of those plugins. &nbsp;The main thing you need to know about is which browsers have plugins available.&nbsp;</p>
<p><strong>Short answer</strong>: Chrome, Firefox, and Safari.</p>
<p><strong>Long answer</strong>: Chrome, Firefox, and Safari have proper browser plugins available. &nbsp;The Chrome plugin also works in Vivaldi&nbsp;and possibly other browsers that are based on Chrome.&nbsp; There are also form-filling plugins that work with Internet Explorer. &nbsp;To my knowledge, there is no plugin support available for Microsoft Edge.</p>
<p>For this entry, I'll just talk about setting up a plugin with Chrome. &nbsp;We're going to use a Chrome extension called ChromeIPass. &nbsp;It adds a KeePass button to the toolbar in Chrome and can automatically detect login forms on webpages you visit. &nbsp;It works with a KeePass plugin called KeePassHttp.</p>
<p><img src="https://linlog.skepticats.com/entries/2017/02/28_2312/chromeipass-page.png" alt="" /></p>
<p>First, you need to install the KeePassHttp plugin. &nbsp;Start by going to the <a href="https://github.com/pfn/keepasshttp/">KeePassHttp website</a> and clicking the "download" link, or just download it directly <a href="https://raw.github.com/pfn/keepasshttp/master/KeePassHttp.plgx">here</a>. &nbsp;Sadly, KeePass doesn't have a nice way to install plugins - you just have to copy the plugin file to the KeePass plugins folder on your system. &nbsp;Inconvenient, but fortunately not something you need to do very often. &nbsp;On most computers, this will be&nbsp;<code>C:\Program Files (x86)\KeePass Password Safe 2\Plugins</code>. &nbsp;So just copy the KeePassHttp.plgx file that you downloaded and paste it into that location.&nbsp; Since this is a system directory, you will probably be prompted to grant access. &nbsp;Click "continue" to copy the file. &nbsp;Note that if KeePass is running, you will need to close and restart it for it to detect the plugin.</p>
<p><img src="https://linlog.skepticats.com/entries/2017/02/28_2312/access-denied.png" alt="Click &quot;continue&quot; when prompted to allow access to copy the plugin." /></p>
<p>Now that the KeePassHttp plugin is installed, KeePass will be able to communicate with Chrome. &nbsp;You just need to install the ChromeIPass extension. &nbsp;You can do that by going to the Chrome <a href="https://chrome.google.com/webstore/detail/chromeipass/ompiailgknfdndiefoaoiligalphfdae">web store page here</a>&nbsp;and clicking the "Add to Chrome" button. &nbsp;</p>
<h3>So...now what?</h3>
<p>OK, now that ChromeIPass is installed, what do you do with it? &nbsp;Well, not really much until it's time to log into a site. &nbsp;So pick a site&nbsp;that's in your KeePass database and go there - I'll use sourceforge.net for this example because it's a pretty standard login form.</p>
<p>The first time you try to log into a site using ChromeIPass, you'll need to connect it to your KeePass database. &nbsp;You should notice a KeePass icon is now in your toolbar. &nbsp;Make sure KeePass is running and click that button.</p>
<p><img src="https://linlog.skepticats.com/entries/2017/02/28_2312/configure.png" alt="" /></p>
<p>You should see a "Connect" button. &nbsp;Click that and KeePass will prompt you to add a new encryption key for the KeePassHttp plugin. &nbsp;This is a security mechanism - the KeePassHttp plugin encrypts its communication with your KeePass database and this is just the initial step where it sets that up. &nbsp;Don't worry about the details right now - just type in a unique name for the key, maybe based on your browser and computer, e.g. "Laptop - Chrome". &nbsp;You only have to do this the first time you connect a browser to your database - after that, the encryption is automatic.</p>
<p><img src="https://linlog.skepticats.com/entries/2017/02/28_2312/new-key.png" alt="" /></p>
<p>Now that ChromeIPass is connected to your KeePass database, you can&nbsp;click the&nbsp;ChromeIPass button in your toolbar and click the "Redetect Credetials Fields" to fill in your username and password. &nbsp;Alternatively, you can just refresh the webpage and they should be auto-filled. &nbsp;You won't see anything in the browser yet, but KeePass itself ill prompt you to allow access to the password for this site. &nbsp;You can&nbsp;check the "Remember this decision" box to not be prompted to allow access the next time you visit this site.</p>
<p><img src="https://linlog.skepticats.com/entries/2017/02/28_2312/confirm-access.png" alt="" /></p>
<p>(I should probably stop to acknowledge that this thing of having to grant a site access to your KeePass database before you can log in is kind of a drag. &nbsp;I agree, it is somewhat annoying. &nbsp;This is actually a security feature of KeePassHttp - that's the portion of this that runs inside KeePass itself and allows the ChromeIPass extension to talk to it. &nbsp;It actually has a lot of security-related settings. &nbsp;This is actually a good thing, though, because it essentially provides a way for other programs to read your KeePass database, and you want to make sure that malware or dodgy websites aren't able to do that. &nbsp;However, if you want to disable some of these settings, like prompting to allow access, you can do that by going into KeePass and selecting the "Tools &gt; KeePassHttp Options" menu item. &nbsp;The KeePassHttp documentation has some more <a href="https://github.com/pfn/keepasshttp/blob/master/README.md#configuration-and-options">information on the available settings</a>.)</p>
<p>The good news is that now you're done! &nbsp;After you allow access to KeePass, ChromeIPass will automatically fill in your username and password. &nbsp;If you selected the "remember" option when allowing access to the site, ChromeIPass will automatically fill in your login info the next time you visit the site, no action required. &nbsp;You will only have to allow access the first time you visit a new site of if you elect not to have KeePass remember the approval.</p>
<p>If you're so inclined, ChromeIPass has a number of other features, as <a href="https://github.com/pfn/passifox/blob/master/documentation/chromeIPass.md#37-fill-in-additional-values-via-string-fields">detailed in the documentation</a>. &nbsp;For instance, it can save or update entries automatically when you enter a password into a webpage; it has a built-in password generator that lets you create strong passwords right in the browser; it can customize the login fields for non-standard login forms; and it provides a handy right-click menu to fill in passwords and access other functionality. &nbsp;</p>
<p>Hopefully this will help get you started. &nbsp;Using a password manager is a must for keeping your accounts secure these days, and integrated browser support makes using one that much easier, which means you're more likely to <em>keep</em> using it.</p>]]></description>
      <author><![CDATA[pageer@skepticats.com (Peter Geer)]]></author>
      <pubDate>Wed, 01 Mar 2017 04:12:02 +0000</pubDate>
      <category><![CDATA[Tools]]></category>
      <category><![CDATA[Software]]></category>
      <category><![CDATA[Security]]></category>
      <guid isPermalink="true">https://linlog.skepticats.com/entries/2017/02/KeePass_browser_plugins.php</guid>
      <comments>https://linlog.skepticats.com/entries/2017/02/28_2312/comments/</comments>
    </item>
    <item>
      <title><![CDATA[Using KeePass]]></title>
      <link>https://linlog.skepticats.com/entries/2017/02/Using_KeePass.php</link>
      <description><![CDATA[<p>You should be using a password manager. &nbsp;If you're a technical person, this is probably not news to you&nbsp;- you're very likely already using one. &nbsp;</p>
<p>This article is for the non-technical people. &nbsp;People like my wife (hi, honey!) and my mom. &nbsp;People who access a lot of websites and have a lot of passwords to remember.</p>
<h3>Security 101</h3>
<p>So why is using a password manager a good idea?</p>
<p>Well, you may have seen guidelines for cyber security that tell you things like:</p>
<ol>
<li>Don't write down your passwords.</li>
<li>Don't reuse passwords on different sites.</li>
<li>Don't use short, easy to guess passwords.</li>
<li>Don't use passwords that are easy to figure out from public data (like a birthday&nbsp;that anyone&nbsp;can get from your Facebook profile).</li>
</ol>
<p>Such guidance raises the question: if I have to use long passwords that aren't related to anything in my life, and I can't reuse them or write them down,&nbsp;<strong><em>how the hell am I supposed to remember them?!?</em></strong></p>
<p>This is a totally reasonable question. &nbsp;Yes, ideally we would all memorize a hundred different 32-character-long, randomly generated passwords. &nbsp;But in real life, nobody can actually do that. &nbsp;So a password manager is a good compromise.</p>
<h3>What is a Password Manager</h3>
<p>My mother has a little paper "password book" that she keeps in a drawer next to her computer. &nbsp;When she has to create a new account for some website, she writes down all the login information in that book so that she can look it up later.</p>
<p>A password manager is the digital equivalent of that password book. &nbsp;It's an application that lets you record your login information and them look it up later. &nbsp;Most password managers have lots of other handy-dandy features as well, but that's the core of what they do.</p>
<p>So how is this different from, say, writing down all your passwords in a Word document on your desktop? &nbsp;Well, a password manager encrypts all your data. &nbsp;It requires a "master password" to decrypt your information, so if some nasty hacker steals that file, they won't be able to actually read it. &nbsp;</p>
<p>Is this as secure as just memorizing all your passwords? &nbsp;No. &nbsp;But as we said, nobody can do that anyway, and this is one heck of a lot more secure than the alternatives, i.e. reused or weak passwords. &nbsp;With a password manager, you can still have strong, unique passwords for all your sites, but you're relieved of the burden of having to remember them all.</p>
<h3>About KeePass</h3>
<p>There are a number of password managers out there, but the one I'm going to talk about is <a href="http://keepass.info/">KeePass</a>.&nbsp; It's a free, open-source password management application that will run on Windows, Linux, and Mac, and has compatible apps available for iOS and <a href="https://keepass2android.codeplex.com/">Android</a>.&nbsp; KeePass works offline (i.e. it requires no internet connection and doesn't depend on any online services), but it's possible to sync your KeePass passwords between devices using file sync tools like DropBox or OneDrive. &nbsp;So it provides you some flexibility, but you aren't beholden to a single company that can get hacked or go out of business.</p>
<p>KeePass creates files password files that end with ".kdbx".&nbsp; You can open those files from within KeePass or double-click on them in Window Explorer.&nbsp; When you try to open one, KeePass will prompt you for the master password to that file.&nbsp; Every KDBX file has its own master password.&nbsp; This allows you to do things like create a password file to share with the rest of your family, and have a different one for the accounts that are just yours. &nbsp;(That's a topic for a different post.)</p>
<p>One of the handy extra functions of KeePass is that each entry in your password save can have a bunch of extra data associated with it. &nbsp;For example, you can add custom fields and attach files to each entry, which are handy for things like account validation questions and activation files for software licenses. &nbsp;Basically, you can keep all the important information in one place. &nbsp;And since KeePass encrypts your&nbsp;<em>entire</em> password file, it will all be kept secure.</p>
<h3>Using KeePass</h3>
<p>So how do you use KeePass? &nbsp;Let's walk through it.</p>
<h4>Step 1 - Download</h4>
<p>The first thing you need to do is to get yourself a copy of KeePass. &nbsp;You can go to&nbsp;<a href="http://keepass.info/download.html">this page</a>&nbsp;and click the download link for the "professional edition".&nbsp; (There's not really anything "professional" about it - it's just a newer version with&nbsp;more features.) &nbsp;When that's done, you can double-click the&nbsp;file to install it like any other program.</p>
<p>You can also install KeePass through <a href="https://ninite.com/">Ninite</a>. &nbsp;If you're not familiar with Ninite, I strongly recommend you check it out. &nbsp;It's a great tool that makes it brain-dead simple to install and update a collection of programs with just a few clicks. &nbsp;You basically just select a bunch of applications you'd like to install from a list, click a button, and you get an installer program you can run to put everything you selected on your computer. &nbsp;And if you run that program again later, it will actually&nbsp;<em>update</em> any of those programs that have a newer version. &nbsp;It's very slick and a real time-saver.</p>
<h4>Step 2 - Create a password safe</h4>
<p>&nbsp;Next, open up KeePass and click "File &gt; New". &nbsp;You will be prompted to choose where you want to save your new password database. &nbsp;Choose a name and folder that work for you. &nbsp;Remember - your password database is just a regular file, so you can always move or rename it later if you want.</p>
<p>After that, you should get a dialog that looks like this:</p>
<p><img src="https://linlog.skepticats.com/entries/2017/02/09_0006/1-create-master-key.png" alt="" /></p>
<p>This shows several options for securing your password safe. &nbsp;But don't worry about that - the one you really want is the first one, "master password". &nbsp;So choose a password and type it in. &nbsp;If you click the three dots on the right, KeePass will display the password as you type, so that you don't have to re-enter it.</p>
<p>There are two important things to note when choosing a master password. &nbsp;First, since it's going to protect <em>all your other passwords</em>, you want to make it good. &nbsp;KeePass provides a password strength meter to help you judge, but the main things to bear in mind are that you want a range of different characters and you want it to be&nbsp;<em>long</em>. &nbsp;And no, ten letters does not qualify as "long"&nbsp;- it should be more of a pass<em>phrase</em>&nbsp;than a pass<em>word</em>. &nbsp;One common technique is to use a full sentence, complete with capitalization and punctuation (an maybe some numbers, if you can work them in). &nbsp;That will generally give you a pretty strong password, but it will still be easy to remember.</p>
<p>The other important thing to remember is that the password to a KDBX file&nbsp;<strong><em>is</em></strong>&nbsp;your encription key for that file. &nbsp;That means that the <em>only</em> way to decrypt the file is with that password.&nbsp; <strong>If you forget your master password, your data is gone forever.</strong> &nbsp;So write down your master password and keep it in a safe place until you're certain you've committed it to memory. &nbsp;And if you want to change your master password later, make sure to make a backup copy of your KDBX file first.</p>
<p>After you've chosen a master password, you should see a screen that allows you to configure some of the settings for your password file. &nbsp;However, you don't really need to worry about this - those are all optional. &nbsp;You can safely click the "OK" button to just continue on.</p>
<p><img src="https://linlog.skepticats.com/entries/2017/02/09_0006/2-db-settings.png" alt="" /></p>
<h4>Step 3 - Organize your passwords</h4>
<p>Alright! &nbsp;You now have a password database set up. &nbsp;You should see a list of groups on the left and a list of password entries on the right, like in the image below. &nbsp;These are the sample groups and entries that KeePass creates by default. &nbsp;They're just to give you an idea of how to use your password database - you can safely delete them at any time.</p>
<p><img src="https://linlog.skepticats.com/entries/2017/02/09_0006/4-main-window.png" alt="" /></p>
<p>You can click on each group at the left to see what entries it contains. &nbsp;The groups are basically like folders in Windows. &nbsp;There's a top-level folder, and it contains a bunch of sub-folders and each of those sub-folders can contain other folders. &nbsp;So in the screenshot, you can see that "NewDatabase" is highlighted in the group list. &nbsp;That's the top-level folder for my example database. &nbsp;You can see on the right that it contains two entries.&nbsp; You can move an entry into another folders by dragging it from the entry list on the right onto one of the folders on the left.</p>
<h3>Step 4 - Create passwords</h3>
<p>To add a password entry to your database, select "Edit &gt; Add Entry" from the menu.&nbsp; That will bring up the entry edit screen.&nbsp; This is the same screen you'll see when you double-click on the title of an existing entry, except that it is mostly blank.</p>
<p>There are a lot of tabs and options on this screen, but you don't really need to worry about those.&nbsp; The main things are right in front of you: the entry title, user name, and password.&nbsp; You'll probably also want to fill in the URL field with the web address of the site this information is for. &nbsp;This will come in handy if you want to use a KeePass plugin for your web browser (which we'll cover in another post). &nbsp;When you're done entering your info, click the OK button to create the entry. &nbsp;You should then select "File &gt; Save" from the menu or push the "save" button on the toolbar to save the changes to your password database.</p>
<p><img src="https://linlog.skepticats.com/entries/2017/02/09_0006/5-sample-entry.png" alt="" /></p>
<p>You'll probably notice that there's already a password filled in.&nbsp; KeePass will generate a random password for new entries.&nbsp; You are free to change this yourself or use the button to the right of the "repeat" box to generate other random passwords using different rules.&nbsp; KeePass has a password generator that lets you specify the allowed characters and length for a random password, which is handy for those sites that insist on specific password length or complexity rules.</p>
<h3>Step 5 - Getting your passwords out</h3>
<p>Now let's back up and say you've just started up your computer, are logging in to some website, and want to get a password out of KeePass. &nbsp;The first thing you need to do is open up your password database. &nbsp;You can do this by double-clicking on it in Windows Explorer or by opening up KeePass then selecting your database from the "File &gt; Open" menu. &nbsp;When you open the database, you'll be greeted by a screen asking you to enter your master password - you know, the one you came up with in step 2. &nbsp;(Hint: remember that you can click the button with the three dots to display the password as you type it.) &nbsp;After you enter your master password, the database will be decrypted and you'll find yourself and the entry browsing screen from step 3.</p>
<p><img src="https://linlog.skepticats.com/entries/2017/02/09_0006/3-opening-db.png" alt="" /></p>
<p>There are several ways to get your passwords out of KeePass. &nbsp;Here's the list in order of preference:</p>
<ol>
<li><strong>Use a browser plugin to automatically fill in login forms.</strong> &nbsp;Since most of the passwords you end up creating are for websites, setting up your browser to fill in the forms from your KeePass database makes life&nbsp;<em>much</em> easier. &nbsp;I'll talk about how to do that in the next post. &nbsp;But don't worry - it's not all that hard.</li>
<li><strong>Use auto-type</strong>. &nbsp;This is a feature of KeePass where you to click a button in the KeePass window&nbsp;and it will automatically send the keystrokes for your username and password to the last window you used. &nbsp;So, for example, you would navigate to the login page of a site in your web browser, click in the username box, and then switch over to the KeePass window and click the auto-type button on the toolbar (the one that looks kind of like some keyboard keys - hover your cursor over the buttons to see the descriptions). &nbsp;By default, the auto-type feature will type your username, the "tab" key, your password, and then the "enter" key. &nbsp;This will work for probably 90% or more of login pages, but it's not universal, so be aware of that.</li>
<li><strong>Copy them to the clipboard</strong>. &nbsp;If all else fails, you can always just copy your passwords to the clipboard so that you can paste them into another window. &nbsp;KeePass makes this fairly easy. &nbsp;In the main password list that you saw in step 3, when you double-click on the actual username or password for an entry in the list, it will copy that to the clipboard. &nbsp;This saves you having to open up the entry edit screen and copy things there. &nbsp;You can then switch to another window and paste the data into a login screen.</li>
<li><strong>Just read it</strong>. &nbsp;Last, but not least, you can always go low-tech and just read the passwords out of the window. &nbsp;Just double-click the name of your entry, then click the "three dots" button to make the password visible. &nbsp;Clearly this is not great, but sometimes it's necessary. &nbsp;For example, you will need to do this when entering a password on a system that doesn't have KeePass installed, such as to login into your Amazon or Netflix account when setting up a Roku or other streaming media system.</li>
</ol>
<h3>Conclusion</h3>
<p>With any luck, I've made this "password manager" thing sound good enough for you to try it out. &nbsp;You really should look into it. &nbsp;Password reuse has become increasingly dangerous, with hackers&nbsp;trying the usernames and passwords they harvested from one hack on other sites just to see if they work. &nbsp;Password cracking tools have also advanced a lot in recent years,&nbsp;including information gleaned from previous attacks, so relying on things like "133t 5p34k" passwords is no longer good enough. &nbsp;A decent password manager, if used consistently with randomly generated passwords, will provide you with a good trade-off between convenience and security.</p>]]></description>
      <author><![CDATA[pageer@skepticats.com (Peter Geer)]]></author>
      <pubDate>Thu, 09 Feb 2017 05:06:12 +0000</pubDate>
      <category><![CDATA[Tools]]></category>
      <category><![CDATA[]]></category>
      <category><![CDATA[Software]]></category>
      <category><![CDATA[Security]]></category>
      <guid isPermalink="true">https://linlog.skepticats.com/entries/2017/02/Using_KeePass.php</guid>
      <comments>https://linlog.skepticats.com/entries/2017/02/09_0006/comments/</comments>
    </item>
    <item>
      <title><![CDATA[Getting a password manager  ]]></title>
      <link>https://linlog.skepticats.com/entries/2014/02/Getting_a_password_manager.php</link>
      <description><![CDATA[<p>After shamelessly reusing passwords for far too long, I finally decided to get myself a decent password manager.  After a few false starts, I ended up going with <a href="http://keepass.info/">KeePass</a>.  In retrospect, I probably should have started with that, but my thought process didn't work out that way.</p><p>Originally, my thought was that I wanted to use a web-based password manager.  I figured that would work best as I'd be able to access it from any device.  But I didn't want to use a third-party service, as I wasn't sure how much I wanted to trust them.  So I was looking for something self-hosted.</p><p><img alt="PPMA" title="PPMA" src="https://linlog.skepticats.com/entries/2014/02/05_2151/ppma.png" /></p><p>I started off with <a href="http://sourceforge.net/projects/ppma/">PPMA</a>, a little <a href="http://www.yiiframework.com/">Yii</a>-based application.  It had the virtue of being pretty easy to use and install.  There were a few down sides, though.  The main one was that it wasn't especially mobile-friendly, so there were parts of the app that actually didn't work on my phone, which defeats the whole &quot;works on any device&quot; plan.  Also, it really only supported a single user, so it's not something I could easily set my wife up on as well.  (To be fair, the multi-user support was <em>sort of</em> there, but it was only half-implemented.  I was able to get it basically working on my own, but still.)</p><p>More importantly, I wasn't entirely confident in the overall security of PPMA.  For starters, the only data it actually encrypted was the password.  Granted, that's the <em>most</em> important piece, that's sort of a minimalist approach to account security.  And even worse, I wasn't 100% convinced that <em>that</em> was secure - it's not clear to me that it doesn't store a password or key in session data that could be snooped on a shared server.  Of course, I haven't done an extensive analysis, so I <em>don't know</em> if it has any problems, but the possibility was enough to make me wary and I didn't really want to do an extensive audit of the code (there was no documentation to speak of, and certainly nothing on the crypto scheme).</p><p>The next package I tried was <a href="https://clipperz.is/">Clipperz</a>.  This is actually a service, but their code is open-source, so you could conceivably self-host it.  I had a bit more confidence in this one because they actually had some documentation with a decent discussion of how their security worked.</p><p><img alt="Clipperz - beta UI" title="Clipperz - beta UI" src="https://linlog.skepticats.com/entries/2014/02/05_2151/Clipperz - beta.png" /></p><p>The only problem I had with Clipperz was that I couldn't actually get it to work.  Their build script had some weird dependencies and was a pain to deal with (it looked like it was trying to check their source control repository for changes before running, for some reason).  And once I got it installed, it just flat-out didn't work.  I was able to create a new account, but after that every request just returned an error out.  And to make things worse, it turns out their PHP backend is ancient and not recommended - it's still using the old-school MySQL database extension.  The only other option was the AppEngine Python backend, which wasn't gonna work on my hosting provider.  So that was a bust.</p><p>It was at that point that I started to think using a web-based solution might not be the best idea.  Part of this is simply the nature of the web - you're working over a stateless protocol and probably using an RDBMS for persistence.  So if you want to encrypt all the user's data and avoid storing their password, then you're already fighting with the medium.  A desktop app doesn't have that problem, though - you can encrypt the entire data file and just hold the data in memory when you decrypt it.</p><p>It also occurred to me that accessing my passwords from any computer might not be as valuable as I'd originally thought.  For one thing, I probably can't trust other people's computers.  God alone knows what kind of malware or keyloggers might be installed on a random PC I would use to access my passwords.  Besides, there's no need to trust a random system when I always have a trusted one with me - namely, my phone.  </p><p>Great!  So all I really need is a password manager than runs on Android.</p><p>Well...no, that won't do it.  I don't <em>really</em> want to have to look up passwords on my phone and manually type them into a window on my desktop.  So I need something that produces password databases that I can use on both Android and Windows.</p><p>Luckily, KeePass 2 fits the bill.  It has a good feature set, seems to have a good reputation, and the documentation had enough info on how it works to inspire some confidence.  The official application is only Windows-based, but there are a number of unofficial ports, including several to iOS and Android.  It's even supported by the <a href="http://ninite.com/">Ninite</a> installer, so I can easily work it into my standard installation.</p><p><img alt="KeePass2" title="KeePass2" src="https://linlog.skepticats.com/entries/2014/02/05_2151/keepass.png" /></p><p>For me, the key feature that made KeePass viable was that it supports synchronization with a URL.  There are extensions that add support for SSH and cloud services, if you're into that sort of thing, but synchronizing via standard FTP or WebDAV is built right in.  KeePass also supports triggers that allow you to automatically synchronize your local database with the remote URL on certain events, e.g. opening or saving the database.</p><p>For the mobile side, I decided to go with <a href="http://keepass2android.codeplex.com/">Keepass2Android</a>.  There are several options out there, but I chose this one because it supports reading and writing the KeePass 2.x database format (which not all of them do) and can directly read and write files to FTP and WebDAV.  It's also available as an APK download from the developer's site, as opposed to being available exclusively through the Google Play store, which means I can easily install it on my Kindle Fire.</p><p>Keepass2Android also has a handy little feature called &quot;QuickUnlock&quot;, which allows you one chance to unlock your database by typing just the last few characters of your passphrase.  If you get it wrong the database is locked and you need to enter the full passphrase.  This addresses one of my main complaints about smart phones - the virtual keyboards work to actively discourage good passwords because they're so damned hard to type.  I chose a long passphrase which takes several seconds to type on a full keyboard - on a virtual keyboard, it's absolutely excruciating.  This way, I don't have to massively compromise security for usability.</p><p>So, in the end, my setup ended up being fairly straight-forward.  </p><ol><li>I install KeePass on all my computers.</li><li>I copy my KeePass database to the WebDAV server I have set up on my web hosting.</li><li>I set up all my computers with a trigger to sync with the remote URL.</li><li>I install Keepass2Android on my phone and tablet.</li><li>I configure them to open the database directly from the URL.  Keepass2Android caches remote databases, so this is effectively the same as the desktop sync setup.</li><li>Profit!  I now get my password database synchronized among all my computers and devices.</li></ol><p>I've been using this setup for close to a month now, and it works pretty darn well.  Good encryption, good usability, plenty of backups, and I didn't even have to involve a third-party service.</p>]]></description>
      <author><![CDATA[pageer@skepticats.com (Peter Geer)]]></author>
      <pubDate>Thu, 06 Feb 2014 02:51:25 +0000</pubDate>
      <category><![CDATA[Software]]></category>
      <category><![CDATA[Security]]></category>
      <category><![CDATA[Tools]]></category>
      <category><![CDATA[Android]]></category>
      <guid isPermalink="true">https://linlog.skepticats.com/entries/2014/02/Getting_a_password_manager.php</guid>
      <comments>https://linlog.skepticats.com/entries/2014/02/05_2151/comments/</comments>
    </item>
  </channel>
</rss>
