@classmethod
def create(cls, codebase, vault_dir, name, keys=None):
    """Create a new vault in the specified directory."""
    vault = cls.get()
    buf = vault.encrypt('---\n{}')
    codebase.write(f'{vault_dir}/{name}.aes', buf, mode='wb', newline=False)
    return vault
