diff --git a/lib/openpgp.php b/lib/openpgp.php index 65a157d..4ce8382 100644 --- a/lib/openpgp.php +++ b/lib/openpgp.php @@ -30,7 +30,7 @@ class OpenPGP { foreach ($headers as $key => $value) { $text .= $key . ': ' . (string)$value . "\n"; } - $text .= "\n" . base64_encode($data); + $text .= "\n" . wordwrap(base64_encode($data), 76, "\n", true); $text .= "\n".'=' . base64_encode(substr(pack('N', self::crc24($data)), 1)) . "\n"; $text .= self::footer($marker) . "\n"; return $text;