diff --git a/connectrsa.kt b/connectrsa.kt index a625e48..0985456 100644 --- a/connectrsa.kt +++ b/connectrsa.kt @@ -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() }