Posts  / #POST-212674
REDDIT

ChaCha20 for file encryption

I
Nov 23, 2025 · 12:16

Hi, assume I have an application, that already uses chacha20 for other purposes,


Now some local state data is pretty sensitive so I encrypt it locally on disk. It is stored in one file, and that file can get quite large.

I don't care about performance, my only concern is security

I know chacha20 and streaming ciphers in general aren't good / meant to be used for disk encryption, but, I am reluctant to import another library and use a block cipher like AES for this, as this increases attack surface.


What are the experts take on this ? Keep using chacha20 or not ? Any suggestions / ideas ?