crypt module: Long lines can't be decrypted by mircryption clients #233

Open
opened 2026-10-05 04:06:56 +02:00 by adam · 2 comments
Owner

Very long lines should be split up into smaller pieces (e.g. 300 chars each) to prevent decryption issues with mircryption clients. (Single lines longer than ~325 chars won't be decrypted correctly by mircryption)

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Very long lines should be split up into smaller pieces (e.g. 300 chars each) to prevent decryption issues with mircryption clients. (Single lines longer than ~325 chars won't be decrypted correctly by mircryption) ## <bountysource-plugin> Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/321233-crypt-module-long-lines-can-t-be-decrypted-by-mircryption-clients?utm_campaign=plugin&utm_content=tracker%2F1759&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F1759&utm_medium=issues&utm_source=github). </bountysource-plugin> <!-- github-sync-id:14220880 -->
Author
Owner

This is due to hitting the 512 character limit of each IRC line ("nick!user@host PRIVMSG #channel" + ~330 chars + encryption overhead + base64 overhead is around 512 bytes). It should be fairly easy to work around this by have OnUserMsg split a long line into ~330 byte chunks and send them as multiple lines. I'll see if I can put a patch together to do this.

This is due to hitting the 512 character limit of each IRC line ("nick!user@host PRIVMSG #channel" + ~330 chars + encryption overhead + base64 overhead is around 512 bytes). It should be fairly easy to work around this by have OnUserMsg split a long line into ~330 byte chunks and send them as multiple lines. I'll see if I can put a patch together to do this. <!-- github-comment-id:46439004 -->
Author
Owner

+1 from me for this.

+1 from me for this. <!-- github-comment-id:59265778 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/znc#233