Make the chunking properly work
This commit is contained in:
parent
d7ebfd7a2f
commit
721b4b5ddc
@ -102,7 +102,7 @@ class Connect {
|
|||||||
reader.readLine()
|
reader.readLine()
|
||||||
|
|
||||||
for (chunk in chunks) {
|
for (chunk in chunks) {
|
||||||
val cipherText = encrypt(algorithm, chunk, key, iv)
|
val cipherText = encrypt(algorithm, chunk, key, iv).lines().joinToString("")
|
||||||
writer.println(cipherText)
|
writer.println(cipherText)
|
||||||
reader.readLine()
|
reader.readLine()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user