From 721b4b5ddcbc2ae5cf4bfbe2e28889b386f411d8 Mon Sep 17 00:00:00 2001 From: Joren Schipman Date: Wed, 1 May 2024 01:36:14 +0200 Subject: [PATCH] Make the chunking properly work --- connectrsa.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() }