I use the Keepass family of software for my password management and on my iPhone I can use the wonderful KeePassium which supports syncing the password database over WebDAV for self-hosting your