Hussnain Ahmad building your own password manager would actually be less secure than using a proprietary solution imo since there's a lot to it. I think you can host bitwarden locally too but password managers always encrypt the vaults with master password and only store its hash on cloud.