This will it work. No matter if you are using the same password or not, the actual key that is used for encryption differs (if you are interested in detailed information how the encryption works, please refere to the documentation)
If your masterkey file is missing, you can recreate it as long as you have noted your recovery key.
See here: Recover masterkey file with recovery key? - #4 by tobihagemann