Since the file format unfortunately requires a password field, even if using public key cryptography, there should be an option
to use a random password - effectively not having a password. It should only be allowed if at least one public key is used at the same time.