Keepass Dropbox Sync

Posted onby admin
  1. Keepassium Dropbox
  2. Sync Keepass With Dropbox
  3. Keepass Android Dropbox Sync

This is a follow up video on my KeePass 2 tutorial. This time we're taking a look at KeePass for Android and how to set everything up so that your database i. If you’re syncing it with a cloud storage service like Dropbox, you can just open your cloud storage app and download the database to your phone. If you’re not, you can copy your KeePass database file directly to your phone — just connect its USB cable and copy the file over. Next, choose an app that’s compatible with KeePass databases.

Coming up with unique passwords that you can remember is a pretty difficult task in itself. Then comes the problem of keeping the passwords somewhere safe for when you can’t remember them. With the amount of apps and services we use, it’s not unusual to have more than 100 different passwords.

You can create a pattern containing a base prefix in the first half of the password and something related to the app or service in the second half. But someday you might even forget that. And with news of NSA tracking, SSL bug, Heartbleed bug and all, it feels like I end up changing passwords every month or so.

How to manage this? And more importantly, sync this between your PC and your connected mobile devices safely and without much friction.

A simple answer does exist. It is called LastPass, and it is something I’ve personally used for past couple of years. But syncing LastPass with mobile devices requires a premium subscription. Also, LastPass stores your passwords in its own cloud. Far out of your protective reach.

An alternative is KeePass. A free open source platform that is amazingly secure and has a lot of plugins and apps for every platform imaginable.

Let me tell you how you can manage your passwords on your PC with the KeePass 2.0 app and sync it with Android.

What This Guide Is About

KeePass is a great free and open source utility. There are a lot of things it does well and a lot of things it doesn’t. This guide will focus on what it does better than LastPass for free. Which is syncing passwords from PC to Android and even letting you autofill them in any modern Android browser. To do so with LastPass, you’d need a premium account.

PC

If you are using LastPass, it is pretty easy to import your LastPass passwords into KeePass. Just create a new database, assign a strong master key that you will never forget and follow the guide linked above.

Side note: Make sure you are using KeePass 2.x app which has the extension

Keepassium Dropbox

.kbdx for database files as it works for all the platforms including Android and iOS. KeePass 1.0 only supports Windows natively.Keepass Dropbox Sync

Store Database File In Dropbox

The most important part is ensuring all your latest passwords are available on all your devices. Yes, by using Dropbox you are saving the file in “the Cloud” but if it is protected with a unique and strong key, you are no better off or worse than having it stored locally.

App For Android

On Android, there are a couple of apps that support KeePass 2.0 database files. The most popular being KeePassDroid. But we’ll use Keepass2Android because it allows you to directly import a database file from Dropbox and is generally easy to use.

Launch the app and tap the Open File button. There are a lot of options here. You can import a database file you copied to local storage or import from cloud services like Dropbox, Google Drive or OneDrive.

Once you locate your database file, open it up and input your master key. Now, all the passwords saved in that database file are available to use on your Android phone. You can copy any password to your clipboard easily.

Autofill Passwords In Android Browser

Keepass2Android app allows you to look up any password and copy it to your clipboard but if you want the same autofill feature from desktop browsers, you need to do a bit of work. But it is possible.

Make sure you are logged in to the KeePass database and the username and password for the website you are on is saved in the database. And from the Language and Keyboard section in Settings, make sure Keepass2Android is enabled.

Step 1: On the login page, from the menu in Chrome or any other browser, select Share and choose Keepass2Android.

Step 2: You’ll be asked to choose a keyboard – select Keepass2Android here. If prompted, enter your database password or just the last three letters for a quick unlock.

Step 3: Now, the app will recognize which page you are on and will bring up a special keyboard. Tap the username field and then tap the User button on the keyboard to insert the username and Pass button to insert the password.

It Works

The implementation is a bit shabby but hey, it works!

Do You Use KeePass?

What do you think of KeePass? Have you ever used it? Would you consider it now that you know it can sync your passwords with Android devices? Let us know in the comments below.


The above article may contain affiliate links which help support Guiding Tech. However, it does not affect our editorial integrity. The content remains unbiased and authentic.

Read Next

Top 3 LastPass Alternatives: Password Managers Done Right

Unhappy with the sale of

Yes, that sounds like a bad idea for some reason. But when using KeePass, I would like to get my container on several machines without having to drag a USB-stick around.

So the aim is to upload the encrypted juicy password blob to the cloud.

For KeePass there are several options, I have chosen for KeeCloud, a plugin for KeePass.

It supports some extra protocols for KeePass's native synchronization feature. It adds support for:

  • Amazon Simple Storage Service (S3)
  • Azure Blob Storage
  • Dropbox

In this post, we'll look at how you could set it up for Azure Blob Storage ... but the others will be quite similar.

Update: KeeCloud itself seems a bit stale and it doesn't work anymore with the latest versions of KeePass. However, there is somebody called Catscratch29 who picked up the repo on bitbucket and ensured compatibility with the latest KeyPass, hopefully they can keep that up! You can get it here: https://bitbucket.org/Catscratch29/keecloud.

Update: Ignore my previous update, KeeCloud is back up to date and works on Windows and Linux (with mono).

Installing the Plugin

I'm assuming you are already using KeePass with a local password file.

You can download the plugin from the website at bitbucket.org/devinmartin/keecloud/downloads.

  • Download the latest version
  • Unzip the file somewhere locally
  • Copy the KeeCloud.plgx file to the directory where the KeePass executable sits
    • Or a sub-directory

If you then start up KeePass and go to Tools > Plugins, you should see KeeCloud listed as an installed plugin.

Using Azure Blobs in KeeCloud

I'm going to use Azure Blobs myself, because I happen to have some Azure. If you don't have that I believe this storage would be very cheap, if it is only used for such small files. But there are some other (free) alternatives as well.

If you want to know on how to setup Azure Blob Storage for this, I'll explain this later in the post. For now, I'm assuming you already have an Azure Storage Account.

Now:

  • Upload your password file manually to your Azure Blob Container
    • The easiest way I know is using Azure Storage Explorer
  • Find and remember:
    • The 'Storage Account Name'
    • The 'Container Name'
    • The 'Storage Account Key'
    • The name of your Blob (i.e. the name of the file you uploaded ...)

See further down if you're not sure what this all means.

Syncing your blob

Now open up KeePass and when your 'vault' is open, go to 'File > Synchronize > Synchronize with URL' (Ctrl + Shift + R).

The you can fill in the following values:

  • URL: azure://{container-name}/{blob-name}
  • User name: {Storage Account Name}
  • Password: {Storage Account Key}
  • Remember: I suggest to remember user name only
    • You can consider adding your Azure Storage Key to your passwords, since it'll be reasonably safe in your encrypted blob
    • Whenever you sync, you can then first quickly copy the password from your safe

This should be enough to synchronize your passwords to your Azure Blob Storage.

Azure and Azure Blobs

So, on Azure, which is 'Microsoft's Cloud Computing Platform' you can get many kinds of cloud services: Virtual Machines, Databases, ... but also just 'storage'. You can get the same thing on other Cloud providers, such as Amazon Web Services and Google Cloud. But I happen to have some Azure and not some of the other two.

One type of storage, and the cheapest I believe, is just to get a 'Blob Container' up. A 'blob' could be any kind of file, while a 'container' is a place to put that blob 'in the cloud'.

If you're on Azure's portal (not the new preview one but the full portal), you can go to: 'New > Storage > Quick Create' to create a new 'Storage Account'. If you are already doing stuff on Azure, you likely already have a Storage Account. If not, create one.

You must give it a name for the URL (something.core.windows.net) a location and what kind of replication you want. 'Locally Redundant' is the cheapest. Then click 'Create Storage Account'.

You can then go to 'Storage', then click on your new Storage Account and go to the 'Containers' tab.

Keepass

Click 'Add' to create a new container, which is the place where you can store files in.

All you have to do is give it a name and declare it as Private or Public. In our case, it can be private.

Remember:

  • The name of your Storage Account
  • The name of your container

Creating a Blob With Azure Storage Explorer

Unfortunatly, KeePass and KeeCloud won't create a new Blob for you. This means you'll have to upload your KeePass file once to your container.

The easiest tool I found for that was Azure Storage Explorer.

Start it up and click 'Add Account'. It will ask you for your 'Storage Account' name, which you should already know, and a 'Storage Account Key'.

You can find this key via the Azure Portal. Go to: 'Storage', select your container and click 'Manage Access Keys'. You'll get a Primary and Secondary access key. Copy one into the Storage Explorer.

Once connected, navigate to your container and choose 'Upload'. Then upload your KeePass file, give it a name. This will be the name of your Blob.

Remember:

  • The key of your Storage Account
  • The name of your Blob.

Is it Expensive?

I would personally not get an Azure account only for this, I would think something like Dropbox is cheaper, unless you really really don't trust dropbox of course. Support for SpiderOak is on the wishlist. So if you don't know what to do this weekend, write support for that.

But to the point: from what I see in the pricing calculator, if you were to store 25GB of Locally Redundant blob data and have 1 GB of traffic a month, you'd be paying 0.48 euro / month (0,45 for the storage, 0,03 for the bandwidth).

That is not much. And a password file is not 25GB but only a few KB, so I would expect you'd be paying a lot less than that ...

Is it Safe?

Sync Keepass With Dropbox

I'm going to assume it is, obviously KeePass and KeeCloud have access to your blob as does Azure, but the blob is sent as an encrypted blob to Azure, over an encrypted connection (SSL). It is of course less safe than not sending your blob to some external service.

Keepass Android Dropbox Sync

If you have Azure, Dropbox or Amazon for storage, setting up the KeeCloud plugin to synchronize your password file is seemlessly possible with KeePass. Always consider how much trust you put in your cloud storage, and of course make sure your master password is very strong.