I'm hoping to encrypt a few files using ChaCha, so I wonder if it's appropriate to use Chacha20Poly1305
. It seems that this class is designed for TLS, so does that mean it's not designed for file encryption? The methods inside, e.g., encodePlaintext()
and decodeCiphertext()
appear to work with text rather than binary files.
If that's the case, does anyone know how to work with BC's ChaCha implementation for file encryption?
See Question&Answers more detail:os