Due to HIPAA requirements, I need to encrypt data at rest. I have a BufferedSource
that contains data from my api call.
The Okio documentation says
Sinks may be layered to transform received data, such as to compress, encrypt, throttle, or add protocol framing.
How do I use a Sink
to perform this encryption?