Question: Looking for a way to exclude image links/links that do not contain any anchor text. The code below gets the job done as far as compiling the data I want, but it also picks up unwanted URLs from some thumbnails/image links on the pages

```
for url in list_urls:
    browser.get(url)
    soup = BeautifulSoup(browser.page_source,"html.parser")
    for line in soup.find_all('a'):
        href = line.get('href')
        links_with_text.append([url, href])

```

Images on the pages scraped all have the same format (and they are all under the same div class, "related-content"):

```
<a href="https://XXXX/"    ><picture class="crp_thumb crp_featured" title="XXXX">
<source type="image/webp" srcset="https://XXXX.jpg.webp"/>
<img width="150" height="150" src="https://XXXX.jpg" alt="XXXX"/>
</picture>

```

Answer: 
AES does only supports keysizes of 128, 192 and 256 bits. See [Wikipedia](https://en.wikipedia.org/wiki/Advanced_Encryption_Standard)

Changing an AES implementation to use 512bit keys would require some experience in cryptography.

Considering that the best attacks on AES are only slightly better than brute-force (and are not real-world feasible) there is no reason to use larger keys. Bruteforcing 256 bits is not possible in the lifetime of the human race.
It should be possible to implement an AES-style encryption algorithm using 512 bits in theory. However, it is significantly more complicated than appending 2 AES256 keys onto each other. For more details check out [this](https://crypto.stackexchange.com/questions/20253/why-we-cant-implement-aes-512-key-size/20258#20258) post and linked paper on the Cryptography Stack Exchange.

On Keepass in particular, the source code is available [here](https://github.com/keepassx/keepassx). However, it appears to be implemented in c++, not python, so you may wish to change the tag on your question. I'm not familiar with the code base so I'm not sure which file you should start with.