Make the chunking properly work

This commit is contained in:
Joren Schipman 2024-05-01 01:36:14 +02:00
parent d7ebfd7a2f
commit 721b4b5ddc
Signed by untrusted user who does not match committer: Joren
GPG Key ID: 280E33DFBC0F1B55

View File

@ -102,7 +102,7 @@ class Connect {
reader.readLine()
for (chunk in chunks) {
val cipherText = encrypt(algorithm, chunk, key, iv)
val cipherText = encrypt(algorithm, chunk, key, iv).lines().joinToString("")
writer.println(cipherText)
reader.readLine()
}