Support modern encryption

jarifibrahim commented :

Hey @z0mbie42

According to cryptographers (https://latacora.singles/2018/04/03/cryptographic-right-answers.html) it’s far better than AES for multiple reasons, the number one being it’s simplicity.

I couldn’t find any valid argument for using XChaCha20Poly1305 against AES . Can you please point me to some other references?

A quick google search landed me on
tls - What's the appeal of using ChaCha20 instead of AES? - Cryptography Stack Exchange and what I understand is

  • Chacha20 would be faster on CPU which does not have dedicated AES Instruction
  • Chach20 is easier to implement than AES

(there were other points that I don’t think are relevant to this discussion)

Most of the modern CPUs have the AES instruction so point 1 isn’t of much relevance.

Adding support for encryption algorithms would be breaking change for badger. Do you have a strong reason to not use AES?