I use a password manager that does this, called SafeInCloud (Android) - it asks you to select one of the available backends, such as Gmail, Dropbox and others, and keeps the entire password db encrypted there. It syncs between my devices quite well for that scenario where writes are seldom