If you did a backup to computer on iTunes (on the computer that you sync with) with encryption, when you plug in iPhone 6, it should as you whether you want to restore from that backup and everything should carry over.

I've done backup and restore from blank with my iPhone 5 and the backup is done with encryption then all your passwords stuff are safe. It's handy that way.