You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`Base64Source` supports partial and chunked reading, such as for decoding http chunked transfer mode responses in memory-efficient manner.
31
+
19
32
Think Apache Commons' [Base64InputStream and Base64OutputStream](https://commons.apache.org/proper/commons-codec/apidocs/org/apache/commons/codec/binary/package-summary.html) but for Okio `Source`s and `Sink`s.
20
33
21
34
## `CipherSource` and `CipherSink`
@@ -25,12 +38,25 @@ Encrypt and decrypt data in a streaming fashion using the Java platform's [Ciphe
25
38
```kotlin
26
39
val cipheredSource =...
27
40
28
-
val decodedSource =CipherSource(cipheredSource, decodeCipher)
41
+
val decodedSource =CipherSource(cipheredSource, decryptCipher)
29
42
30
43
val output =Buffer().also { it.writeAll(decodedSource) }
`CipherSource` supports chunked deciphering, such as for decrypting http chunked transfer mode responses on the fly.
59
+
34
60
Think javax.crypto's standard [CipherInputStream and CipherOutputStream](https://docs.oracle.com/javase/7/docs/api/javax/crypto/package-summary.html) but for Okio `Source`s and `Sink`s.
0 commit comments