def assess_integrity(vault_path, config_path):
    """
        The vault config file contains a salt. The salt is used to unlock the vault along with the master key.
        By default, config files are created automatically. A new config file will not allow to open an existing vault.
        We are ensuring here that a config file exists if a vault exists.
    """
    import os
    import sys
    if not os.path.isfile(config_path) and os.path.isfile(vault_path):
        print()
        print(
            'It looks like you have a vault setup but your config file is missing.'
            )
        print(
            'The vault cannot be unlocked without a critical piece of information from the config file (the salt).'
            )
        print('Please restore the config file before proceeding.')
        print()
        sys.exit()
