Commit Graph

23 Commits

Author SHA1 Message Date
Martin Dosch
b004015e18
Don't unwrap errors when checking errors. 2023-08-16 08:49:43 +02:00
Martin Dosch
2f76178a22
Replace invalid characters with UTF8 replacement char. 2023-08-10 13:42:31 +02:00
Martin Dosch
a912408d16
Wrap and unwrap errors. 2023-06-07 22:28:01 +02:00
Martin Dosch
ea4b1a7de4
Start wrapping errors. 2023-06-06 22:09:59 +02:00
Martin Dosch
61027844d2
[golangci-lint]: Don't use magic numbers. 2023-06-06 10:47:41 +02:00
Martin Dosch
7de155af64
[golangci-lint]: Use stronger random number generator for rPad. 2023-06-04 16:14:32 +02:00
Martin Dosch
b79e7dd502
Check error for file.Close(). 2023-06-04 15:15:31 +02:00
Martin Dosch
8e693c5934
Improve rpad generation.
Use runes instead of bytes to always reach a multiple of 100
symbols for message body + rpad.
2023-05-29 11:40:37 +02:00
Martin Dosch
437cd7eec6
Remove copyright years. 2023-05-11 20:06:23 +02:00
Martin Dosch
4fbd7efb91
Make sending of OOB URLs more robust. 2023-02-18 16:24:46 +01:00
Martin Dosch
d481aa688c
Add support for sending files OOB. 2023-02-18 15:42:04 +01:00
Martin Dosch
dd9566eaee
Move string validation into own helper function. 2022-11-05 12:40:40 +01:00
Martin Dosch
1214e7920f Revert "Ox: Improve rpad"
This reverts commit 83c92bd4cc.
2022-05-03 17:40:47 +02:00
Martin Dosch
83c92bd4cc Ox: Improve rpad
Pad to a multiple of 200 bytes as recommended.
2022-05-03 17:35:46 +02:00
Martin Dosch
433e974a4a Clean up. 2022-05-02 16:13:00 +02:00
Martin Dosch
917dabe6af Ox: Improve rpad generation. 2022-05-02 15:07:58 +02:00
Martin Dosch
6556ab1188 Ox: Change rpad from random length to length dependent on message length
The length of message + the length of the rpad will always be a
total length of a multiple of 100.
2022-04-29 11:36:41 +02:00
Martin Dosch
13dc48bbb4 Remove println. 2022-04-28 17:40:39 +02:00
Martin Dosch
658ef9b653 Ox: Use crypto/rand instead of math/rand for rpad. 2022-04-28 17:39:00 +02:00
Martin Dosch
644b1f809d Use shorter random string for resource. 2022-04-23 23:40:15 +02:00
Martin Dosch
20953ab1ac Move file reading into own helper func. 2022-04-18 10:16:00 +02:00
Martin Dosch
e9e0d8c735 Add experimental Ox (OpenPGP for XMPP) support. 2022-04-17 17:16:29 +02:00
Martin Dosch
3c9f8fac45 Move id function to helpers file. 2022-04-09 11:00:38 +08:00