Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

BOFH excuse #418: Sysadmins busy fighting SPAM.


sci / sci.crypt / Re: xorpng

SubjectAuthor
* Ternary Encoding :-)Stefan Claas
+* Re: Ternary Encoding :-)Stefan Claas
|`* Re: Ternary Encoding :-)Rich
| +* Re: Ternary Encoding :-)Stefan Claas
| |+* Re: Ternary Encoding :-)Stefan Claas
| ||+- Re: Ternary Encoding :-)Stefan Claas
| ||`* Re: Ternary Encoding :-)Rich
| || `- Re: Ternary Encoding :-)Chris M. Thomasson
| |`- Re: Ternary Encoding :-)Rich
| `* Re: Ternary Encoding :-)Stefan Claas
|  `* Re: Ternary Encoding :-)Rich
|   `* Re: Ternary Encoding :-)Stefan Claas
|    `* Re: Ternary Encoding :-)Rich
|     `* Re: Ternary Encoding :-)Stefan Claas
|      +* Re: Ternary Encoding :-)Stefan Claas
|      |`* Re: Ternary Encoding :-)Rich
|      | `* Re: Ternary Encoding :-)Stefan Claas
|      |  `- Re: Ternary Encoding :-)Rich
|      `* Re: Ternary Encoding :-)Rich
|       `* Re: Ternary Encoding :-)Stefan Claas
|        `* Re: Ternary Encoding :-)Stefan Claas
|         +- Re: Ternary Encoding :-)Rich
|         `* Re: Ternary Encoding :-)Rich
|          +- Re: Ternary Encoding :-)Stefan Claas
|          `* Re: Ternary Encoding :-)Chax Plore
|           `- Re: Ternary Encoding :-)Rich
`* Re: Ternary Encoding :-)Chris M. Thomasson
 `* Re: Ternary Encoding :-)Stefan Claas
  `* Re: Ternary Encoding :-)Chris M. Thomasson
   `* xorpng (was: Ternary Encoding :-))Stefan Claas
    +- Re: xorpngStefan Claas
    `* Re: xorpngChris M. Thomasson
     `* Re: xorpngStefan Claas
      `* Re: xorpngChris M. Thomasson
       `* Re: xorpngChris M. Thomasson
        `* Re: xorpngStefan Claas
         `* Re: xorpngChris M. Thomasson
          `* Re: xorpngStefan Claas
           +* Re: xorpngChris M. Thomasson
           |`* Re: xorpngStefan Claas
           | `* Re: xorpngRich
           |  `* Re: xorpngStefan Claas
           |   +* Re: xorpngChris M. Thomasson
           |   |`* Re: xorpngStefan Claas
           |   | `* Re: xorpngChris M. Thomasson
           |   |  +- Re: xorpngChris M. Thomasson
           |   |  `* Re: xorpngStefan Claas
           |   |   `* Re: xorpngChris M. Thomasson
           |   |    `* Re: xorpngStefan Claas
           |   |     `- Re: xorpngChris M. Thomasson
           |   `* Re: xorpngRich
           |    `* Re: xorpngStefan Claas
           |     +* Re: xorpngStefan Claas
           |     |`* Re: xorpngRich
           |     | `* Re: xorpngStefan Claas
           |     |  `* Re: xorpngRich
           |     |   `* Re: xorpngStefan Claas
           |     |    +* Re: xorpngChris M. Thomasson
           |     |    |`* Re: xorpngChris M. Thomasson
           |     |    | `* Re: xorpngStefan Claas
           |     |    |  +* Re: xorpngChris M. Thomasson
           |     |    |  |`- Re: xorpngChris M. Thomasson
           |     |    |  +* Re: xorpngChris M. Thomasson
           |     |    |  |`* Re: xorpngStefan Claas
           |     |    |  | `* Re: xorpngStefan Claas
           |     |    |  |  `- Re: xorpngStefan Claas
           |     |    |  `* Re: xorpngRich
           |     |    |   `* Re: xorpngStefan Claas
           |     |    |    +* Re: xorpngStefan Claas
           |     |    |    |+* Re: xorpngStefan Claas
           |     |    |    ||`* Re: xorpngJan Panteltje
           |     |    |    || `- Re: xorpngStefan Claas
           |     |    |    |`- Re: xorpngRich
           |     |    |    `* Re: xorpngRich
           |     |    |     `* Re: xorpngStefan Claas
           |     |    |      `* Re: xorpngStefan Claas
           |     |    |       `* Re: xorpngStefan Claas
           |     |    |        `* Re: xorpngStefan Claas
           |     |    |         `* Re: xorpngChris M. Thomasson
           |     |    |          +- Re: xorpngChris M. Thomasson
           |     |    |          `* Re: xorpngStefan Claas
           |     |    |           `- Re: xorpngChris M. Thomasson
           |     |    `- Re: xorpngRich
           |     +- Re: xorpngRich
           |     `* Re: xorpngChris M. Thomasson
           |      +* Re: xorpngChris M. Thomasson
           |      |`* Re: xorpngStefan Claas
           |      | +* Re: xorpngChris M. Thomasson
           |      | |`- Re: xorpngRich
           |      | `- Re: xorpngChris M. Thomasson
           |      `- Re: xorpngRich
           `* Re: xorpngChris M. Thomasson
            +* Re: xorpngChris M. Thomasson
            |`- Re: xorpngStefan Claas
            `* Re: xorpngStefan Claas
             `* Re: xorpngStefan Claas
              `* Re: xorpngChris M. Thomasson
               `* Re: xorpngStefan Claas
                `- Re: xorpngChris M. Thomasson

Pages:1234
Subject: Re: xorpng
From: Stefan Claas
Newsgroups: sci.crypt
Organization: To protect and to server
Date: Mon, 6 Jan 2025 00:22 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
Path: news.eternal-september.org!eternal-september.org!feeder3.eternal-september.org!newsfeed.bofh.team!paganini.bofh.team!not-for-mail
From: pollux@tilde.club (Stefan Claas)
Newsgroups: sci.crypt
Subject: Re: xorpng
Date: Mon, 6 Jan 2025 01:22:48 +0100
Organization: To protect and to server
Message-ID: <vlf7oo$11c0e$1@paganini.bofh.team>
References: <vl243l$3jkpe$1@paganini.bofh.team> <vlc891$k8s5$2@dont-email.me> <vlc8om$k8s5$3@dont-email.me> <vlc9d8$irra$1@paganini.bofh.team> <vlcahc$ks00$1@dont-email.me> <vlcbki$j00g$1@paganini.bofh.team> <vlccrh$lb6a$1@dont-email.me> <vlchr0$j921$1@paganini.bofh.team> <vlcivh$md8n$2@dont-email.me> <vlcjan$oal1$2@paganini.bofh.team> <vld86b$tdna$1@dont-email.me> <vldj6q$pqvr$2@paganini.bofh.team> <vldk3q$psnq$1@paganini.bofh.team> <vlecdg$13phn$2@dont-email.me> <vlenpl$rjtu$1@paganini.bofh.team> <vles9r$16v92$2@dont-email.me> <vlesgd$rrnh$1@paganini.bofh.team> <vlf27d$17vsk$5@dont-email.me> <vlf2cd$17vsk$6@dont-email.me> <vlf3ae$s6de$1@paganini.bofh.team> <vlf3um$18h0m$2@dont-email.me> <vlf6se$11ai8$1@paganini.bofh.team>
Mime-Version: 1.0
Injection-Date: Mon, 6 Jan 2025 00:22:48 -0000 (UTC)
Injection-Info: paganini.bofh.team; logging-data="1093646"; posting-host="P19FF9OOayxo5XAXCSdPUg.user.paganini.bofh.team"; mail-complaints-to="usenet@bofh.team"; posting-account="9dIQLXBM7WM9KzA+yjdR4A";
User-Agent: flnews/1.3.0pre29 (for GNU/Linux)
Cancel-Lock: sha1:+KF1/lF7BAIi0rDUGX3fdjj9lls=
X-Notice: Filtered by postfilter v. 0.9.3
X-Date: It's Mon Sep 11451 01:22:48 AM CET 1993, the September that never ends.
X-Ed25519-Pub: c0ffee5a36e581eb10f60b2831b3cdb955d2e7ef680dd282a8d43ad8b84b357a
X-Ed25519-Sig: f3cda2d196517e1f9120c9e71bae5f8af1e4548ad7adce580acbcb7473c25fa8
aca6b3e2656fa2dd1f935735350ae28191cceb7d18e9610eba581b0473d0cc0d
View all headers

Stefan Claas wrote:
> Chris M. Thomasson wrote:
> > On 1/5/2025 3:06 PM, Stefan Claas wrote:
> > > Chris M. Thomasson wrote:
> > [...]
> > > *Please* try to write a .ppm (P6) to .png converter (and back) in C(++)
> > > and see if you can get the *original* data back. The sci.crypt community
> > > and me of course would appreciate your help very much!
> >
> > Still, try this:
> >
> > Upload a PNG to X and/or FB. Copy the image, download the image from
> > them after its up on their site. Do a file compare on it wrt your
> > original source PNG. Are the exactly the same?
>
> On X they are the same, once downloaded, which a 'diff' shows. ;-)

BTW. I come to the conclusion that it is best to use 'age' without
the -a option and then my file2png program ... This allows one to
encrypt any kind of data and convert it as valid noise .png image,
for X and other online usage. The advantage of 'age' is that it
uses public key cryptography or symmetric encryption. Better not
to invent the wheel twice. Anyways interesting thread ... :-)

--
Regards
Stefan

Subject: Re: xorpng
From: Stefan Claas
Newsgroups: sci.crypt
Organization: To protect and to server
Date: Mon, 6 Jan 2025 00:46 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
Path: news.eternal-september.org!eternal-september.org!feeder3.eternal-september.org!newsfeed.bofh.team!paganini.bofh.team!not-for-mail
From: pollux@tilde.club (Stefan Claas)
Newsgroups: sci.crypt
Subject: Re: xorpng
Date: Mon, 6 Jan 2025 01:46:50 +0100
Organization: To protect and to server
Message-ID: <vlf95q$11e2v$1@paganini.bofh.team>
References: <vl243l$3jkpe$1@paganini.bofh.team> <vlc891$k8s5$2@dont-email.me> <vlc8om$k8s5$3@dont-email.me> <vlc9d8$irra$1@paganini.bofh.team> <vlcahc$ks00$1@dont-email.me> <vlcbki$j00g$1@paganini.bofh.team> <vlccrh$lb6a$1@dont-email.me> <vlchr0$j921$1@paganini.bofh.team> <vlcivh$md8n$2@dont-email.me> <vlcjan$oal1$2@paganini.bofh.team> <vld86b$tdna$1@dont-email.me> <vldj6q$pqvr$2@paganini.bofh.team> <vldk3q$psnq$1@paganini.bofh.team> <vlecdg$13phn$2@dont-email.me> <vlenpl$rjtu$1@paganini.bofh.team> <vles9r$16v92$2@dont-email.me> <vlesgd$rrnh$1@paganini.bofh.team> <vlf27d$17vsk$5@dont-email.me> <vlf2cd$17vsk$6@dont-email.me> <vlf3ae$s6de$1@paganini.bofh.team> <vlf3um$18h0m$2@dont-email.me> <vlf6se$11ai8$1@paganini.bofh.team> <vlf7oo$11c0e$1@paganini.bofh.team>
Mime-Version: 1.0
Injection-Date: Mon, 6 Jan 2025 00:46:50 -0000 (UTC)
Injection-Info: paganini.bofh.team; logging-data="1095775"; posting-host="P19FF9OOayxo5XAXCSdPUg.user.paganini.bofh.team"; mail-complaints-to="usenet@bofh.team"; posting-account="9dIQLXBM7WM9KzA+yjdR4A";
User-Agent: flnews/1.3.0pre29 (for GNU/Linux)
Cancel-Lock: sha1:I6wuvDoADyncr87aTdsV92MO8cQ=
X-Ed25519-Sig: 2f6de05b4aacfdb3a9506c040c6e42feb6c646d79ab3e51828ad86676989bb64
b8c018ff4123b7d94229d44c65b71ad388e57e17cee07dca23cc68bccb94b50c
X-Date: It's Mon Sep 11451 01:46:50 AM CET 1993, the September that never ends.
X-Notice: Filtered by postfilter v. 0.9.3
X-Ed25519-Pub: c0ffee5a36e581eb10f60b2831b3cdb955d2e7ef680dd282a8d43ad8b84b357a
View all headers

Stefan Claas wrote:
> Stefan Claas wrote:
> > Chris M. Thomasson wrote:
> > > On 1/5/2025 3:06 PM, Stefan Claas wrote:
> > > > Chris M. Thomasson wrote:
> > > [...]
> > > > *Please* try to write a .ppm (P6) to .png converter (and back) in C(++)
> > > > and see if you can get the *original* data back. The sci.crypt community
> > > > and me of course would appreciate your help very much!
> > >
> > > Still, try this:
> > >
> > > Upload a PNG to X and/or FB. Copy the image, download the image from
> > > them after its up on their site. Do a file compare on it wrt your
> > > original source PNG. Are the exactly the same?
> >
> > On X they are the same, once downloaded, which a 'diff' shows. ;-)
>
> BTW. I come to the conclusion that it is best to use 'age' without
> the -a option and then my file2png program ... This allows one to
> encrypt any kind of data and convert it as valid noise .png image,
> for X and other online usage. The advantage of 'age' is that it
> uses public key cryptography or symmetric encryption. Better not
> to invent the wheel twice. Anyways interesting thread ... :-)

And plug-ins for 'age' exists, which allows Yubikey or TPM usage. :-)

--
Regards
Stefan

Subject: Re: xorpng
From: Rich
Newsgroups: sci.crypt
Organization: A noiseless patient Spider
Date: Mon, 6 Jan 2025 03:29 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13
Path: news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: rich@example.invalid (Rich)
Newsgroups: sci.crypt
Subject: Re: xorpng
Date: Mon, 6 Jan 2025 03:29:32 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 70
Message-ID: <vlfims$1ande$4@dont-email.me>
References: <vl243l$3jkpe$1@paganini.bofh.team> <vlcahc$ks00$1@dont-email.me> <vlcbki$j00g$1@paganini.bofh.team> <vlccrh$lb6a$1@dont-email.me> <vlchr0$j921$1@paganini.bofh.team> <vlcivh$md8n$2@dont-email.me> <vlcjan$oal1$2@paganini.bofh.team> <vld86b$tdna$1@dont-email.me> <vldj6q$pqvr$2@paganini.bofh.team> <vldk3q$psnq$1@paganini.bofh.team> <vlecdg$13phn$2@dont-email.me> <vlenpl$rjtu$1@paganini.bofh.team> <vles9r$16v92$2@dont-email.me> <vlesgd$rrnh$1@paganini.bofh.team>
Injection-Date: Mon, 06 Jan 2025 04:29:33 +0100 (CET)
Injection-Info: dont-email.me; posting-host="aacc148df4532970fbc7162b818dee32";
logging-data="1400238"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18J35bm591vgQ1RI6nxMniY"
User-Agent: tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.139 (x86_64))
Cancel-Lock: sha1:yEAGf8lse+zGsrG6SmZiJbKkDSQ=
View all headers

Stefan Claas <pollux@tilde.club> wrote:
> Rich wrote:
>> Stefan Claas <pollux@tilde.club> wrote:
>> > Rich wrote:
>> > > Stefan Claas <pollux@tilde.club> wrote:
>> > > > Stefan Claas wrote:
>> > > > > Rich wrote:
>> > > > > > Stefan Claas <pollux@tilde.club> wrote:
>> > > > > > > Rich wrote:
>> > > > > > >
>> > > > > > > > If instead you mean some kind of "special, PNG aware,
>> > > > > > > > encryptor that only encrypted the bitmap data of a PNG",
>> > > > > > > > but left the file as otherwise a proper PNG image
>> > > > > > > > structure, then that is slightly tricky (and an algorithm
>> > > > > > > > that is only useful for PNG's alone).
>> > > > > > >
>> > > > > > > Yes, this is what I mean.
>> > > > > >
>> > > > > > Which brings up the question of: why?
>> > > > > >
>> > > > > > Why go to the trouble to create an encryptor that is
>> > > > > > specalized for just encrypting the internal bitmap data within
>> > > > > > a PNG, leaving the rest as a PNG file, when a generic "byte
>> > > > > > stream" encryptor will encrypt the entire PNG with no extra
>> > > > > > effort?
>> > > > >
>> > > > > To make more content as allowed postable on social media, like
>> > > > > X.
>> > > >
>> > > > I.e, first you put data with file2png in a .png and then encrypt
>> > > > it to finally post it. I can do this now with my xorpic program,
>> > > > but I thought a solution with AES-GCM or XChaCha20+ploy1305 is
>> > > > better.
>> > >
>> > > The "path" I outlined in my previous post, where you utilize the
>> > > netpbm image format as your 'intermediary' would allow you to use
>> > > any generic encryption routine you like, while also allowing you to
>> > > convert the encrypted binary data to/from an image format of your
>> > > choice (well, your choice within the set of other formats for which
>> > > NetPBM has to/from converters available).
>> > >
>> > > This frees you from having to understand the internal structure of
>> > > the various image formats. You just work with the netpbm format (a
>> > > raw binary bit/pixel block) for the encrypt/decrypt/padding
>> > > operations, and delegate all the "image format" complexity to the
>> > > netpbm library.
>> >
>> > Thank you! My ppmenc tool works nicely, here are the test images:
>> >
>> > https://jmp.sh/HZM9ML9f
>> >
>> > The big problem I face when converting the encryypted image to .png
>> > and back a diff shows a difference and the decryption fails.
>> >
>> > Maybe someone can figure out what to do, so that a converted .ppm can
>> > be posted online , for viewers/readers and then can be converted back
>> > to the original .ppm, which shows no difference.
>>
>> We can't read your mind over Usenet so can you show how you converted
>> the encrypted image to a png and back.
>>
>
> I used Gimp with compression set to 0 and the netbmp tools.

"compression set to 0" -- meaningless with ppm, there is no
'compression' for any ppm image format. The only options GIMP offers
for "ppm" files is "RAW" vs "ASCII".

I still am unable to read your mind and divine how you converted the
ppm to a png. What exact command did you run?

Subject: Re: xorpng
From: Rich
Newsgroups: sci.crypt
Organization: A noiseless patient Spider
Date: Mon, 6 Jan 2025 03:42 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14
Path: news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: rich@example.invalid (Rich)
Newsgroups: sci.crypt
Subject: Re: xorpng
Date: Mon, 6 Jan 2025 03:42:01 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 63
Message-ID: <vlfje9$1ande$5@dont-email.me>
References: <vl243l$3jkpe$1@paganini.bofh.team> <vlccrh$lb6a$1@dont-email.me> <vlchr0$j921$1@paganini.bofh.team> <vlcivh$md8n$2@dont-email.me> <vlcjan$oal1$2@paganini.bofh.team> <vld86b$tdna$1@dont-email.me> <vldj6q$pqvr$2@paganini.bofh.team> <vldk3q$psnq$1@paganini.bofh.team> <vlecdg$13phn$2@dont-email.me> <vlenpl$rjtu$1@paganini.bofh.team> <vles9r$16v92$2@dont-email.me> <vlesgd$rrnh$1@paganini.bofh.team> <vlf27d$17vsk$5@dont-email.me> <vlf2cd$17vsk$6@dont-email.me> <vlf3ae$s6de$1@paganini.bofh.team>
Injection-Date: Mon, 06 Jan 2025 04:42:02 +0100 (CET)
Injection-Info: dont-email.me; posting-host="aacc148df4532970fbc7162b818dee32";
logging-data="1400238"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19uPo8gMNVDNe1mfuq1qsdv"
User-Agent: tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.139 (x86_64))
Cancel-Lock: sha1:H4qm4DRZ3a4/kxxG0QhDlZ8SB18=
View all headers

Stefan Claas <pollux@tilde.club> wrote:
> *Please* try to write a .ppm (P6) to .png converter (and back) in C(++)
> and see if you can get the *original* data back. The sci.crypt community
> and me of course would appreciate your help very much!

Since you have not "shown your work" (apologizes if you show it later,
I'm replying as I encounter articles in date order) we can't help you
diagnose your problem.

For the below, I used the smallest "tux the peguin" png image available
from wikipedia [1].

$ pngtopam Tux.svg.png > Tux.svg.png.ppm
$ ls -ls
4 drwxr-xr-x 2 4096 Jan 5 22:33 ./
1128 drwxrwxrwt 87 1150976 Jan 5 22:30 ../
28 -rw-r--r-- 1 24774 Jan 5 22:32 Tux.svg.png
144 -rw-r--r-- 1 144849 Jan 5 22:33 Tux.svg.png.ppm

Original png downloaded from wikipedia, and a "ppm" created from the
png. (I append extensions just to keep the conversions clear.

Hash of the starting ppm file:

$ sha256sum Tux.svg.png.ppm
130d198065698026f3e258bd43e2c3033190298a6f35298d90a5df2bd566e276 Tux.svg.png.ppm

Convert the ppm to a new png:

$ pamtopng Tux.svg.png.ppm > Tux.svg.png.ppm.png

Convert the newly created png back into another ppm:

$ pngtopam Tux.svg.png.ppm.png > Tux.svg.png.ppm.png.ppm

Hash of the new ppm file:

$ sha256sum Tux.svg.png.ppm.png.ppm
130d198065698026f3e258bd43e2c3033190298a6f35298d90a5df2bd566e276 Tux.svg.png.ppm.png.ppm

Identical hash as the original:

$ sha256sum Tux.svg.png.ppm Tux.svg.png.ppm.png.ppm
130d198065698026f3e258bd43e2c3033190298a6f35298d90a5df2bd566e276 Tux.svg.png.ppm
130d198065698026f3e258bd43e2c3033190298a6f35298d90a5df2bd566e276 Tux.svg.png.ppm.png.ppm

The four files, original png, ppm from png, new png from ppm, and ppm
created from last png:

$ ls -ls Tux.svg.png*
28 -rw-r--r-- 1 24774 Jan 5 22:32 Tux.svg.png
144 -rw-r--r-- 1 144849 Jan 5 22:33 Tux.svg.png.ppm
24 -rw-r--r-- 1 21863 Jan 5 22:33 Tux.svg.png.ppm.png
144 -rw-r--r-- 1 144849 Jan 5 22:34 Tux.svg.png.ppm.png.ppm

So, to the extent I can tell, you are doing something wrong somewhere.

[1] Direct link to image I downloaded:
https://upload.wikimedia.org/wikipedia/commons/thumb/3/35/Tux.svg/202px-Tux.svg.png

Wikipedia page where the image is linked:
https://en.wikipedia.org/wiki/Electronic_codebook

Subject: Re: xorpng
From: Rich
Newsgroups: sci.crypt
Organization: A noiseless patient Spider
Date: Mon, 6 Jan 2025 03:44 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14
Path: news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: rich@example.invalid (Rich)
Newsgroups: sci.crypt
Subject: Re: xorpng
Date: Mon, 6 Jan 2025 03:44:43 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 33
Message-ID: <vlfjjb$1ande$6@dont-email.me>
References: <vl243l$3jkpe$1@paganini.bofh.team> <vlc7ia$k8so$5@dont-email.me> <vlc80o$ipdu$1@paganini.bofh.team> <vlc891$k8s5$2@dont-email.me> <vlc8om$k8s5$3@dont-email.me> <vlc9d8$irra$1@paganini.bofh.team> <vlcahc$ks00$1@dont-email.me> <vlcbki$j00g$1@paganini.bofh.team> <vlccrh$lb6a$1@dont-email.me> <vlchr0$j921$1@paganini.bofh.team> <vlcivh$md8n$2@dont-email.me> <vlcjan$oal1$2@paganini.bofh.team> <vld86b$tdna$1@dont-email.me> <vldj6q$pqvr$2@paganini.bofh.team> <vlevq2$17khf$4@dont-email.me>
Injection-Date: Mon, 06 Jan 2025 04:44:44 +0100 (CET)
Injection-Info: dont-email.me; posting-host="aacc148df4532970fbc7162b818dee32";
logging-data="1400238"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/hgRn6se/hX+g+q0Zw4KaA"
User-Agent: tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.139 (x86_64))
Cancel-Lock: sha1:HhyxAycqXLE1oHaD151Xz10zJkE=
View all headers

Chris M. Thomasson <chris.m.thomasson.1@gmail.com> wrote:
> On 1/5/2025 1:25 AM, Stefan Claas wrote:
>> Rich wrote:
>>> Stefan Claas <pollux@tilde.club> wrote:
>>>> Rich wrote:
>>>>
>>>>> If instead you mean some kind of "special, PNG aware, encryptor that
>>>>> only encrypted the bitmap data of a PNG", but left the file as
>>>>> otherwise a proper PNG image structure, then that is slightly tricky
>>>>> (and an algorithm that is only useful for PNG's alone).
>>>>
>>>> Yes, this is what I mean.
>>>
>>> Which brings up the question of: why?
>>>
>>> Why go to the trouble to create an encryptor that is specalized for
>>> just encrypting the internal bitmap data within a PNG, leaving the rest
>>> as a PNG file, when a generic "byte stream" encryptor will encrypt the
>>> entire PNG with no extra effort?
>>
>> To make more content as allowed postable on social media, like X.
>>
>
> Well, posting a png to say, facebook, well... It's probablly going to
> turn it into a jpg... This can ruin the embedded ciphertext in the png
> image...

ebay seems to recently be converting jpeg's into webp's after one
uploads them, which would also alter the stored bitmap (as webp is
lossy). Although given the volume of image data they handle, if webp
is even 5% smaller than jpegs, it becomes a huge storage savings for
them.

Subject: Re: xorpng
From: Rich
Newsgroups: sci.crypt
Organization: A noiseless patient Spider
Date: Mon, 6 Jan 2025 03:50 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14
Path: news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: rich@example.invalid (Rich)
Newsgroups: sci.crypt
Subject: Re: xorpng
Date: Mon, 6 Jan 2025 03:50:15 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 62
Message-ID: <vlfjtn$1ande$7@dont-email.me>
References: <vl243l$3jkpe$1@paganini.bofh.team> <vlc8om$k8s5$3@dont-email.me> <vlc9d8$irra$1@paganini.bofh.team> <vlcahc$ks00$1@dont-email.me> <vlcbki$j00g$1@paganini.bofh.team> <vlccrh$lb6a$1@dont-email.me> <vlchr0$j921$1@paganini.bofh.team> <vlcivh$md8n$2@dont-email.me> <vlcjan$oal1$2@paganini.bofh.team> <vld86b$tdna$1@dont-email.me> <vldj6q$pqvr$2@paganini.bofh.team> <vlevq2$17khf$4@dont-email.me> <vlf07h$17khf$5@dont-email.me> <vlf0f4$s1t0$1@paganini.bofh.team> <vlf1fi$17khf$9@dont-email.me>
Injection-Date: Mon, 06 Jan 2025 04:50:15 +0100 (CET)
Injection-Info: dont-email.me; posting-host="aacc148df4532970fbc7162b818dee32";
logging-data="1400238"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18rcm6GtKvCuEEF7u9dD6fw"
User-Agent: tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.139 (x86_64))
Cancel-Lock: sha1:bs86ffivcCG8ivk4Ga3tGV6gI5I=
View all headers

Chris M. Thomasson <chris.m.thomasson.1@gmail.com> wrote:
> On 1/5/2025 2:18 PM, Stefan Claas wrote:
>> Chris M. Thomasson wrote:
>>> On 1/5/2025 2:06 PM, Chris M. Thomasson wrote:
>>>> On 1/5/2025 1:25 AM, Stefan Claas wrote:
>>>>> Rich wrote:
>>>>>> Stefan Claas <pollux@tilde.club> wrote:
>>>>>>> Rich wrote:
>>>>>>>
>>>>>>>> If instead you mean some kind of "special, PNG aware, encryptor that
>>>>>>>> only encrypted the bitmap data of a PNG", but left the file as
>>>>>>>> otherwise a proper PNG image structure, then that is slightly tricky
>>>>>>>> (and an algorithm that is only useful for PNG's alone).
>>>>>>>
>>>>>>> Yes, this is what I mean.
>>>>>>
>>>>>> Which brings up the question of: why?
>>>>>>
>>>>>> Why go to the trouble to create an encryptor that is specalized for
>>>>>> just encrypting the internal bitmap data within a PNG, leaving the rest
>>>>>> as a PNG file, when a generic "byte stream" encryptor will encrypt the
>>>>>> entire PNG with no extra effort?
>>>>>
>>>>> To make more content as allowed postable on social media, like X.
>>>>>
>>>>
>>>> Well, posting a png to say, facebook, well... It's probablly going to
>>>> turn it into a jpg... This can ruin the embedded ciphertext in the png
>>>> image...
>>>
>>> Actually, the damn FB allows me to send my links with embedded
>>> ciphertext just fine.
>>
>> It is for X and not Meta.
>>
>
> Well, sending say a PNG to X, it still might convert it into a JPG. It
> might alter things for compression purposes. This can mess around with
> your payload...

There are several "modifications" to a PNG that can be performed, that
for a photo or a "meme image" will not result in visible changes, but
*will* result in changes to the bitmap.

Several possibilities are:

1) convert RGBA to just RGB (remove alpha channel) -- if one created a
"crypto carrier" PNG that used an alpha channel, this conversion would
delete 25% of the data content.

2) convert RGB (24 bits per pixel) to indexed (either eight or sixteen
bits per pixel). Both require color mapping from 2^24 colors to either
2^8 or 2^16 total colors, resulting in an altered bitmap.

3) convert RGB or indexed images into a "low color" index image (i.e.,
max 64 colors) which requires the same color mapping as #2 above, and
will create a different bitmap.

Simply uploading a PNG to X, then downloading the PNG X serves, and
identifying it as a "PNG" does not tell the full story. You have to
look at what "kind" of PNG was uploaded, and what "kind" of PNG
returned, to know what transformations X performed.

Subject: Re: xorpng
From: Stefan Claas
Newsgroups: sci.crypt
Organization: To protect and to server
Date: Mon, 6 Jan 2025 13:52 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Path: news.eternal-september.org!eternal-september.org!feeder3.eternal-september.org!newsfeed.bofh.team!paganini.bofh.team!not-for-mail
From: pollux@tilde.club (Stefan Claas)
Newsgroups: sci.crypt
Subject: Re: xorpng
Date: Mon, 6 Jan 2025 14:52:38 +0100
Organization: To protect and to server
Message-ID: <vlgn7m$13ki6$1@paganini.bofh.team>
References: <vl243l$3jkpe$1@paganini.bofh.team> <vlccrh$lb6a$1@dont-email.me> <vlchr0$j921$1@paganini.bofh.team> <vlcivh$md8n$2@dont-email.me> <vlcjan$oal1$2@paganini.bofh.team> <vld86b$tdna$1@dont-email.me> <vldj6q$pqvr$2@paganini.bofh.team> <vldk3q$psnq$1@paganini.bofh.team> <vlecdg$13phn$2@dont-email.me> <vlenpl$rjtu$1@paganini.bofh.team> <vles9r$16v92$2@dont-email.me> <vlesgd$rrnh$1@paganini.bofh.team> <vlf27d$17vsk$5@dont-email.me> <vlf2cd$17vsk$6@dont-email.me> <vlf3ae$s6de$1@paganini.bofh.team> <vlfje9$1ande$5@dont-email.me>
Mime-Version: 1.0
Injection-Date: Mon, 6 Jan 2025 13:52:54 -0000 (UTC)
Injection-Info: paganini.bofh.team; logging-data="1167942"; posting-host="+1eVLNby3/69baeVDNN/xA.user.paganini.bofh.team"; mail-complaints-to="usenet@bofh.team"; posting-account="9dIQLXBM7WM9KzA+yjdR4A";
User-Agent: flnews/1.3.0pre29 (for GNU/Linux)
Cancel-Lock: sha1:XoUGjLV5fy0CqbixQx+qIJ0CsL8=
X-Date: It's Mon Sep 11451 02:52:38 PM CET 1993, the September that never ends.
X-Ed25519-Sig: 4eef4179a8dd9790cde7f580538338badb561993462778c2c3801ecb41be6adf
a9de3d756e92a8a954a32cc30bb31fca322f4f546c3b6fb132f86329333b9201
X-Notice: Filtered by postfilter v. 0.9.3
X-Ed25519-Pub: c0ffee5a36e581eb10f60b2831b3cdb955d2e7ef680dd282a8d43ad8b84b357a
View all headers

Rich wrote:
> Stefan Claas <pollux@tilde.club> wrote:
> > *Please* try to write a .ppm (P6) to .png converter (and back) in C(++)
> > and see if you can get the *original* data back. The sci.crypt community
> > and me of course would appreciate your help very much!
>
> Since you have not "shown your work" (apologizes if you show it later,
> I'm replying as I encounter articles in date order) we can't help you
> diagnose your problem.

> So, to the extent I can tell, you are doing something wrong somewhere.

Please try your conversion steps with the encrypted image, I already
have shown:

https://jmp.sh/HZM9ML9f

It includes a padding byte, needed for ppm so that it is divideable by 3.

--
Regards
Stefan

Subject: Re: xorpng
From: Stefan Claas
Newsgroups: sci.crypt
Organization: To protect and to server
Date: Mon, 6 Jan 2025 14:04 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
Path: news.eternal-september.org!eternal-september.org!feeder3.eternal-september.org!newsfeed.bofh.team!paganini.bofh.team!not-for-mail
From: pollux@tilde.club (Stefan Claas)
Newsgroups: sci.crypt
Subject: Re: xorpng
Date: Mon, 6 Jan 2025 15:04:57 +0100
Organization: To protect and to server
Message-ID: <vlgnua$13loe$1@paganini.bofh.team>
References: <vl243l$3jkpe$1@paganini.bofh.team> <vlccrh$lb6a$1@dont-email.me> <vlchr0$j921$1@paganini.bofh.team> <vlcivh$md8n$2@dont-email.me> <vlcjan$oal1$2@paganini.bofh.team> <vld86b$tdna$1@dont-email.me> <vldj6q$pqvr$2@paganini.bofh.team> <vldk3q$psnq$1@paganini.bofh.team> <vlecdg$13phn$2@dont-email.me> <vlenpl$rjtu$1@paganini.bofh.team> <vles9r$16v92$2@dont-email.me> <vlesgd$rrnh$1@paganini.bofh.team> <vlf27d$17vsk$5@dont-email.me> <vlf2cd$17vsk$6@dont-email.me> <vlf3ae$s6de$1@paganini.bofh.team> <vlfje9$1ande$5@dont-email.me> <vlgn7m$13ki6$1@paganini.bofh.team>
Mime-Version: 1.0
Injection-Date: Mon, 6 Jan 2025 14:04:58 -0000 (UTC)
Injection-Info: paganini.bofh.team; logging-data="1169166"; posting-host="+1eVLNby3/69baeVDNN/xA.user.paganini.bofh.team"; mail-complaints-to="usenet@bofh.team"; posting-account="9dIQLXBM7WM9KzA+yjdR4A";
User-Agent: flnews/1.3.0pre29 (for GNU/Linux)
Cancel-Lock: sha1:L8DDEcFvPCeJFesTeB56bUNEE1Y=
X-Notice: Filtered by postfilter v. 0.9.3
X-Ed25519-Sig: bd44ad13d6fea02de8264cdc11aba134186934c0e8751cb19c5bc3a7b356f0dd
3f1c843bb6b6b9dd2a239c2fe4dbb46fa0d31cfc3073c5f4bb95f99164697506
X-Ed25519-Pub: c0ffee5a36e581eb10f60b2831b3cdb955d2e7ef680dd282a8d43ad8b84b357a
X-Date: It's Mon Sep 11451 03:04:57 PM CET 1993, the September that never ends.
View all headers

Stefan Claas wrote:
> Rich wrote:
> > Stefan Claas <pollux@tilde.club> wrote:
> > > *Please* try to write a .ppm (P6) to .png converter (and back) in C(++)
> > > and see if you can get the *original* data back. The sci.crypt community
> > > and me of course would appreciate your help very much!
> >
> > Since you have not "shown your work" (apologizes if you show it later,
> > I'm replying as I encounter articles in date order) we can't help you
> > diagnose your problem.
>
> > So, to the extent I can tell, you are doing something wrong somewhere.
>
> Please try your conversion steps with the encrypted image, I already
> have shown:
>
> https://jmp.sh/HZM9ML9f
>
> It includes a padding byte, needed for ppm so that it is divideable by 3.

Welln ot true, but the paading byte causes the issue, because it gets
lost when converting.

--
Regards
Stefan

Subject: Re: xorpng
From: Stefan Claas
Newsgroups: sci.crypt
Organization: To protect and to server
Date: Mon, 6 Jan 2025 18:49 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
Path: news.eternal-september.org!eternal-september.org!feeder3.eternal-september.org!newsfeed.bofh.team!paganini.bofh.team!not-for-mail
From: pollux@tilde.club (Stefan Claas)
Newsgroups: sci.crypt
Subject: Re: xorpng
Date: Mon, 6 Jan 2025 19:49:01 +0100
Organization: To protect and to server
Message-ID: <vlh8it$14fe4$1@paganini.bofh.team>
References: <vl243l$3jkpe$1@paganini.bofh.team> <vlccrh$lb6a$1@dont-email.me> <vlchr0$j921$1@paganini.bofh.team> <vlcivh$md8n$2@dont-email.me> <vlcjan$oal1$2@paganini.bofh.team> <vld86b$tdna$1@dont-email.me> <vldj6q$pqvr$2@paganini.bofh.team> <vldk3q$psnq$1@paganini.bofh.team> <vlecdg$13phn$2@dont-email.me> <vlenpl$rjtu$1@paganini.bofh.team> <vles9r$16v92$2@dont-email.me> <vlesgd$rrnh$1@paganini.bofh.team> <vlf27d$17vsk$5@dont-email.me> <vlf2cd$17vsk$6@dont-email.me> <vlf3ae$s6de$1@paganini.bofh.team> <vlfje9$1ande$5@dont-email.me> <vlgn7m$13ki6$1@paganini.bofh.team> <vlgnua$13loe$1@paganini.bofh.team>
Mime-Version: 1.0
Injection-Date: Mon, 6 Jan 2025 18:49:01 -0000 (UTC)
Injection-Info: paganini.bofh.team; logging-data="1195460"; posting-host="+1eVLNby3/69baeVDNN/xA.user.paganini.bofh.team"; mail-complaints-to="usenet@bofh.team"; posting-account="9dIQLXBM7WM9KzA+yjdR4A";
User-Agent: flnews/1.3.0pre29 (for GNU/Linux)
Cancel-Lock: sha1:h+gjrzfhkkmORydLRI+QBwnuGFQ=
X-Ed25519-Pub: c0ffee5a36e581eb10f60b2831b3cdb955d2e7ef680dd282a8d43ad8b84b357a
X-Notice: Filtered by postfilter v. 0.9.3
X-Date: It's Mon Sep 11451 07:49:01 PM CET 1993, the September that never ends.
X-Ed25519-Sig: ec1c141c286c2b80878d589f16c6ad229ae09df71b98f903afc3a5ff3695b735
88490515f73303990cfa02f0cdbdb27cba0663e8de14db20dd34146a6dce7a08
View all headers

Stefan Claas wrote:
> Stefan Claas wrote:
> > Rich wrote:
> > > Stefan Claas <pollux@tilde.club> wrote:
> > > > *Please* try to write a .ppm (P6) to .png converter (and back) in C(++)
> > > > and see if you can get the *original* data back. The sci.crypt community
> > > > and me of course would appreciate your help very much!
> > >
> > > Since you have not "shown your work" (apologizes if you show it later,
> > > I'm replying as I encounter articles in date order) we can't help you
> > > diagnose your problem.
> >
> > > So, to the extent I can tell, you are doing something wrong somewhere.
> >
> > Please try your conversion steps with the encrypted image, I already
> > have shown:
> >
> > https://jmp.sh/HZM9ML9f
> >
> > It includes a padding byte, needed for ppm so that it is divideable by 3.
>
> Welln ot true, but the paading byte causes the issue, because it gets
> lost when converting.

I will use encryption and then file2png, which makes the noise image
smaller in size, compared to the original image.

https://github.com/706f6c6c7578/file2png

--
Regards
Stefan

Subject: Re: xorpng
From: Rich
Newsgroups: sci.crypt
Organization: A noiseless patient Spider
Date: Mon, 6 Jan 2025 22:15 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13
Path: news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: rich@example.invalid (Rich)
Newsgroups: sci.crypt
Subject: Re: xorpng
Date: Mon, 6 Jan 2025 22:15:22 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 38
Message-ID: <vlhklq$1qrjs$1@dont-email.me>
References: <vl243l$3jkpe$1@paganini.bofh.team> <vlcjan$oal1$2@paganini.bofh.team> <vld86b$tdna$1@dont-email.me> <vldj6q$pqvr$2@paganini.bofh.team> <vldk3q$psnq$1@paganini.bofh.team> <vlecdg$13phn$2@dont-email.me> <vlenpl$rjtu$1@paganini.bofh.team> <vles9r$16v92$2@dont-email.me> <vlesgd$rrnh$1@paganini.bofh.team> <vlf27d$17vsk$5@dont-email.me> <vlf2cd$17vsk$6@dont-email.me> <vlf3ae$s6de$1@paganini.bofh.team> <vlfje9$1ande$5@dont-email.me> <vlgn7m$13ki6$1@paganini.bofh.team>
Injection-Date: Mon, 06 Jan 2025 23:15:23 +0100 (CET)
Injection-Info: dont-email.me; posting-host="aacc148df4532970fbc7162b818dee32";
logging-data="1928828"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19V1nO4tnWZi/mnNRgw+elX"
User-Agent: tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.139 (x86_64))
Cancel-Lock: sha1:ofJLzPhn/+8ryJCBVfXwIFo2rHc=
View all headers

Stefan Claas <pollux@tilde.club> wrote:
> Rich wrote:
>> Stefan Claas <pollux@tilde.club> wrote:
>> > *Please* try to write a .ppm (P6) to .png converter (and back) in C(++)
>> > and see if you can get the *original* data back. The sci.crypt community
>> > and me of course would appreciate your help very much!
>>
>> Since you have not "shown your work" (apologizes if you show it later,
>> I'm replying as I encounter articles in date order) we can't help you
>> diagnose your problem.
>
>> So, to the extent I can tell, you are doing something wrong somewhere.
>
> Please try your conversion steps with the encrypted image, I already
> have shown:
>
> https://jmp.sh/HZM9ML9f
>
> It includes a padding byte, needed for ppm so that it is divideable by 3.

That PPM is over-sized. The image header claims:

P6
# Created by GIMP version 2.10.34 PNM plug-in
480 480
255

For 480x480 pixels, with a maxval of 255 (1 byte per color) and three
color channels, the binary part of the ppm should be:

480*480*3=691,200 bytes long.

Instead, the binary part of the ppm is 691228 bytes long (28 bytes too
many are present).

So when converting it to a PNG, 28 bytes are lost, which do not return
when converting back from PNG to PPM.

Subject: Re: xorpng
From: Rich
Newsgroups: sci.crypt
Organization: A noiseless patient Spider
Date: Mon, 6 Jan 2025 23:51 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13
Path: news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: rich@example.invalid (Rich)
Newsgroups: sci.crypt
Subject: Re: xorpng
Date: Mon, 6 Jan 2025 23:51:12 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 30
Message-ID: <vlhq9g$1rm42$1@dont-email.me>
References: <vl243l$3jkpe$1@paganini.bofh.team> <vld86b$tdna$1@dont-email.me> <vldj6q$pqvr$2@paganini.bofh.team> <vldk3q$psnq$1@paganini.bofh.team> <vlecdg$13phn$2@dont-email.me> <vlenpl$rjtu$1@paganini.bofh.team> <vles9r$16v92$2@dont-email.me> <vlesgd$rrnh$1@paganini.bofh.team> <vlf27d$17vsk$5@dont-email.me> <vlf2cd$17vsk$6@dont-email.me> <vlf3ae$s6de$1@paganini.bofh.team> <vlfje9$1ande$5@dont-email.me> <vlgn7m$13ki6$1@paganini.bofh.team> <vlgnua$13loe$1@paganini.bofh.team>
Injection-Date: Tue, 07 Jan 2025 00:51:20 +0100 (CET)
Injection-Info: dont-email.me; posting-host="6b21d29a6958147b2d13a9acfd06fdde";
logging-data="1955970"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Oe9iAGB/dPgTQsLP+Uw1+"
User-Agent: tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.139 (x86_64))
Cancel-Lock: sha1:EaEzkh8t7kpxFJBlaLFz1LZlSiA=
View all headers

Stefan Claas <pollux@tilde.club> wrote:
> Stefan Claas wrote:
>> Rich wrote:
>> > Stefan Claas <pollux@tilde.club> wrote:
>> > > *Please* try to write a .ppm (P6) to .png converter (and back) in C(++)
>> > > and see if you can get the *original* data back. The sci.crypt community
>> > > and me of course would appreciate your help very much!
>> >
>> > Since you have not "shown your work" (apologizes if you show it later,
>> > I'm replying as I encounter articles in date order) we can't help you
>> > diagnose your problem.
>>
>> > So, to the extent I can tell, you are doing something wrong somewhere.
>>
>> Please try your conversion steps with the encrypted image, I already
>> have shown:
>>
>> https://jmp.sh/HZM9ML9f
>>
>> It includes a padding byte, needed for ppm so that it is divideable by 3.
>
> Welln ot true, but the paading byte causes the issue, because it gets
> lost when converting.

When you pick an image matrix size, that size must include all bytes,
including any padding necessary, in the data you want to make into an
image.

I.e., the image matrix has to be exactly the number of bytes of the
data after adding any headers and any padding.

Subject: Re: xorpng
From: Jan Panteltje
Newsgroups: sci.crypt
Date: Tue, 7 Jan 2025 05:56 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
Path: news.eternal-september.org!eternal-september.org!feeder3.eternal-september.org!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From: alien@comet.invalid (Jan Panteltje)
Newsgroups: sci.crypt
Subject: Re: xorpng
Date: Tue, 07 Jan 2025 05:56:52 GMT
Message-ID: <vlifn5$1u9vi$1@solani.org>
References: <vl243l$3jkpe$1@paganini.bofh.team> <vlccrh$lb6a$1@dont-email.me> <vlchr0$j921$1@paganini.bofh.team> <vlcivh$md8n$2@dont-email.me> <vlcjan$oal1$2@paganini.bofh.team> <vld86b$tdna$1@dont-email.me> <vldj6q$pqvr$2@paganini.bofh.team> <vldk3q$psnq$1@paganini.bofh.team> <vlecdg$13phn$2@dont-email.me> <vlenpl$rjtu$1@paganini.bofh.team> <vles9r$16v92$2@dont-email.me> <vlesgd$rrnh$1@paganini.bofh.team> <vlf27d$17vsk$5@dont-email.me> <vlf2cd$17vsk$6@dont-email.me> <vlf3ae$s6de$1@paganini.bofh.team>
<vlfje9$1ande$5@dont-email.me> <vlgn7m$13ki6$1@paganini.bofh.team> <vlgnua$13loe$1@paganini.bofh.team> <vlh8it$14fe4$1@paganini.bofh.team>
MIME-Version: 1.0
Content-Type: text/plain; ISO-8859-15
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 7 Jan 2025 05:56:53 -0000 (UTC)
Injection-Info: solani.org;
logging-data="2041842"; mail-complaints-to="abuse@news.solani.org"
User-Agent: NewsFleX-1.5.7.5 (Linux-5.15.32-v7l+)
Cancel-Lock: sha1:PlGGPj2TxTYwS9TnvlLM84Zokp8=
X-Newsreader-location: NewsFleX-1.5.7.5 (c) 'LIGHTSPEED' off line news reader for the Linux platform
NewsFleX homepage: http://www.panteltje.nl/panteltje/newsflex/ and ftp download ftp://sunsite.unc.edu/pub/linux/system/news/readers/
X-User-ID: eJwNysERACEIA8CWgCMI5USd9F/C+d7FV15nZaESgnYUz2rbGrFlq2lWpPt84Tc9hnNs384o8Tl4X8E4mNIPUMcVTA==
View all headers

On a sunny day (Mon, 6 Jan 2025 19:49:01 +0100) it happened Stefan Claas
<pollux@tilde.club> wrote in <vlh8it$14fe4$1@paganini.bofh.team>:

>Stefan Claas wrote:
>> Stefan Claas wrote:
>> > Rich wrote:
>> > > Stefan Claas <pollux@tilde.club> wrote:
>> > > > *Please* try to write a .ppm (P6) to .png converter (and back) in C(++)
>> > > > and see if you can get the *original* data back. The sci.crypt community
>> > > > and me of course would appreciate your help very much!
>> > >
>> > > Since you have not "shown your work" (apologizes if you show it later,
>> > > I'm replying as I encounter articles in date order) we can't help you
>> > > diagnose your problem.
>> >
>> > > So, to the extent I can tell, you are doing something wrong somewhere.
>> >
>> > Please try your conversion steps with the encrypted image, I already
>> > have shown:
>> >
>> > https://jmp.sh/HZM9ML9f
>> >
>> > It includes a padding byte, needed for ppm so that it is divideable by 3.
>>
>> Welln ot true, but the paading byte causes the issue, because it gets
>> lost when converting.
>
>I will use encryption and then file2png, which makes the noise image
>smaller in size, compared to the original image.
>
>https://github.com/706f6c6c7578/file2png

All nice stuff, but an image with just noise makes one suspicious..
and than have a go at hacking it perhaps

Somehow embed the noise in a real image, like one looking at a TV with noise..
'my TV failed'
Bit more complicated to code... sub=area of the image.

Subject: Re: xorpng
From: Stefan Claas
Newsgroups: sci.crypt
Organization: To protect and to server
Date: Tue, 7 Jan 2025 16:26 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Path: news.eternal-september.org!eternal-september.org!feeder3.eternal-september.org!newsfeed.bofh.team!paganini.bofh.team!not-for-mail
From: pollux@tilde.club (Stefan Claas)
Newsgroups: sci.crypt
Subject: Re: xorpng
Date: Tue, 7 Jan 2025 17:26:48 +0100
Organization: To protect and to server
Message-ID: <vljkka$1d6k8$1@paganini.bofh.team>
References: <vl243l$3jkpe$1@paganini.bofh.team> <vlcjan$oal1$2@paganini.bofh.team> <vld86b$tdna$1@dont-email.me> <vldj6q$pqvr$2@paganini.bofh.team> <vldk3q$psnq$1@paganini.bofh.team> <vlecdg$13phn$2@dont-email.me> <vlenpl$rjtu$1@paganini.bofh.team> <vles9r$16v92$2@dont-email.me> <vlesgd$rrnh$1@paganini.bofh.team> <vlf27d$17vsk$5@dont-email.me> <vlf2cd$17vsk$6@dont-email.me> <vlf3ae$s6de$1@paganini.bofh.team> <vlfje9$1ande$5@dont-email.me> <vlgn7m$13ki6$1@paganini.bofh.team> <vlhklq$1qrjs$1@dont-email.me>
Mime-Version: 1.0
Injection-Date: Tue, 7 Jan 2025 16:26:50 -0000 (UTC)
Injection-Info: paganini.bofh.team; logging-data="1481352"; posting-host="6lqOwJyxRLkv94k9QBgAmg.user.paganini.bofh.team"; mail-complaints-to="usenet@bofh.team"; posting-account="9dIQLXBM7WM9KzA+yjdR4A";
User-Agent: flnews/1.3.0pre29 (for GNU/Linux)
Cancel-Lock: sha1:SI4Wl9jtvEJ9qQGssLb8LXtSw8w=
X-Ed25519-Pub: c0ffee5a36e581eb10f60b2831b3cdb955d2e7ef680dd282a8d43ad8b84b357a
X-Date: It's Tue Sep 11452 05:26:48 PM CET 1993, the September that never ends.
X-Ed25519-Sig: dc60839901bef13bd13d23ff0bedab25ab6317417a4a67f6e47565ac0e2fe1e8
96e5b2622b35e5b576b2a1945fcc33b1565381f52bf1684d291ab9badd48f40e
X-Notice: Filtered by postfilter v. 0.9.3
View all headers

Rich wrote:
> Stefan Claas <pollux@tilde.club> wrote:
> > Rich wrote:
> > > Stefan Claas <pollux@tilde.club> wrote:
> > > > *Please* try to write a .ppm (P6) to .png converter (and back) in C(++)
> > > > and see if you can get the *original* data back. The sci.crypt community
> > > > and me of course would appreciate your help very much!
> > >
> > > Since you have not "shown your work" (apologizes if you show it later,
> > > I'm replying as I encounter articles in date order) we can't help you
> > > diagnose your problem.
> >
> > > So, to the extent I can tell, you are doing something wrong somewhere.
> >
> > Please try your conversion steps with the encrypted image, I already
> > have shown:
> >
> > https://jmp.sh/HZM9ML9f
> >
> > It includes a padding byte, needed for ppm so that it is divideable by 3.
>
> That PPM is over-sized. The image header claims:
>
> P6
> # Created by GIMP version 2.10.34 PNM plug-in
> 480 480
> 255
>
> For 480x480 pixels, with a maxval of 255 (1 byte per color) and three
> color channels, the binary part of the ppm should be:
>
> 480*480*3=691,200 bytes long.
>
> Instead, the binary part of the ppm is 691228 bytes long (28 bytes too
> many are present).
>
> So when converting it to a PNG, 28 bytes are lost, which do not return
> when converting back from PNG to PPM.

Yes, I did something wrong. I stick with my fil2png program, which writes
directly png files from any data. A Python3 version is uploaded as well,
for those who do not use Go or do not want to use my binaries.

--
Regards
Stefan

Subject: Re: xorpng
From: Stefan Claas
Newsgroups: sci.crypt
Organization: To protect and to server
Date: Tue, 7 Jan 2025 16:30 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Path: news.eternal-september.org!eternal-september.org!feeder3.eternal-september.org!newsfeed.bofh.team!paganini.bofh.team!not-for-mail
From: pollux@tilde.club (Stefan Claas)
Newsgroups: sci.crypt
Subject: Re: xorpng
Date: Tue, 7 Jan 2025 17:30:16 +0100
Organization: To protect and to server
Message-ID: <vljkqq$1d6k8$2@paganini.bofh.team>
References: <vl243l$3jkpe$1@paganini.bofh.team> <vlccrh$lb6a$1@dont-email.me> <vlchr0$j921$1@paganini.bofh.team> <vlcivh$md8n$2@dont-email.me> <vlcjan$oal1$2@paganini.bofh.team> <vld86b$tdna$1@dont-email.me> <vldj6q$pqvr$2@paganini.bofh.team> <vldk3q$psnq$1@paganini.bofh.team> <vlecdg$13phn$2@dont-email.me> <vlenpl$rjtu$1@paganini.bofh.team> <vles9r$16v92$2@dont-email.me> <vlesgd$rrnh$1@paganini.bofh.team> <vlf27d$17vsk$5@dont-email.me> <vlf2cd$17vsk$6@dont-email.me> <vlf3ae$s6de$1@paganini.bofh.team> <vlfje9$1ande$5@dont-email.me> <vlgn7m$13ki6$1@paganini.bofh.team> <vlgnua$13loe$1@paganini.bofh.team> <vlh8it$14fe4$1@paganini.bofh.team> <vlifn5$1u9vi$1@solani.org>
Mime-Version: 1.0
Injection-Date: Tue, 7 Jan 2025 16:30:18 -0000 (UTC)
Injection-Info: paganini.bofh.team; logging-data="1481352"; posting-host="6lqOwJyxRLkv94k9QBgAmg.user.paganini.bofh.team"; mail-complaints-to="usenet@bofh.team"; posting-account="9dIQLXBM7WM9KzA+yjdR4A";
User-Agent: flnews/1.3.0pre29 (for GNU/Linux)
Cancel-Lock: sha1:shfmAALJ9p+LVbvWpkMLCc9dzGc=
X-Date: It's Tue Sep 11452 05:30:16 PM CET 1993, the September that never ends.
X-Ed25519-Pub: c0ffee5a36e581eb10f60b2831b3cdb955d2e7ef680dd282a8d43ad8b84b357a
X-Notice: Filtered by postfilter v. 0.9.3
X-Ed25519-Sig: f365ad6c8df9685e79752750fe6cd2e2325b2429df01404279b8430430ef5c57
5f49a0b9e2c934051d17a61ad28e61205ec65a2b941333cd74bf941d64709f0f
View all headers

Jan Panteltje wrote:
> On a sunny day (Mon, 6 Jan 2025 19:49:01 +0100) it happened Stefan Claas
> <pollux@tilde.club> wrote in <vlh8it$14fe4$1@paganini.bofh.team>:
>
> > Stefan Claas wrote:
> > > Stefan Claas wrote:
> > > > Rich wrote:
> > > > > Stefan Claas <pollux@tilde.club> wrote:
> > > > > > *Please* try to write a .ppm (P6) to .png converter (and back) in C(++)
> > > > > > and see if you can get the *original* data back. The sci.crypt community
> > > > > > and me of course would appreciate your help very much!
> > > > >
> > > > > Since you have not "shown your work" (apologizes if you show it later,
> > > > > I'm replying as I encounter articles in date order) we can't help you
> > > > > diagnose your problem.
> > > >
> > > > > So, to the extent I can tell, you are doing something wrong somewhere.
> > > >
> > > > Please try your conversion steps with the encrypted image, I already
> > > > have shown:
> > > >
> > > > https://jmp.sh/HZM9ML9f
> > > >
> > > > It includes a padding byte, needed for ppm so that it is divideable by 3.
> > >
> > > Welln ot true, but the paading byte causes the issue, because it gets
> > > lost when converting.
> >
> > I will use encryption and then file2png, which makes the noise image
> > smaller in size, compared to the original image.
> >
> > https://github.com/706f6c6c7578/file2png
>
> All nice stuff, but an image with just noise makes one suspicious..
> and than have a go at hacking it perhaps
>
> Somehow embed the noise in a real image, like one looking at a TV with noise..
> 'my TV failed'
> Bit more complicated to code... sub=area of the image.

Well, I could use 'steg' from GitHub, which is another Go program and
allows to hide any data in a .png, for example.

--
Regards
Stefan

Subject: Re: xorpng
From: Stefan Claas
Newsgroups: sci.crypt
Organization: To protect and to server
Date: Tue, 7 Jan 2025 21:41 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Path: news.eternal-september.org!eternal-september.org!feeder3.eternal-september.org!newsfeed.bofh.team!paganini.bofh.team!not-for-mail
From: pollux@tilde.club (Stefan Claas)
Newsgroups: sci.crypt
Subject: Re: xorpng
Date: Tue, 7 Jan 2025 22:41:22 +0100
Organization: To protect and to server
Message-ID: <vlk724$1e44f$1@paganini.bofh.team>
References: <vl243l$3jkpe$1@paganini.bofh.team> <vlcjan$oal1$2@paganini.bofh.team> <vld86b$tdna$1@dont-email.me> <vldj6q$pqvr$2@paganini.bofh.team> <vldk3q$psnq$1@paganini.bofh.team> <vlecdg$13phn$2@dont-email.me> <vlenpl$rjtu$1@paganini.bofh.team> <vles9r$16v92$2@dont-email.me> <vlesgd$rrnh$1@paganini.bofh.team> <vlf27d$17vsk$5@dont-email.me> <vlf2cd$17vsk$6@dont-email.me> <vlf3ae$s6de$1@paganini.bofh.team> <vlfje9$1ande$5@dont-email.me> <vlgn7m$13ki6$1@paganini.bofh.team> <vlhklq$1qrjs$1@dont-email.me> <vljkka$1d6k8$1@paganini.bofh.team>
Mime-Version: 1.0
Injection-Date: Tue, 7 Jan 2025 21:41:24 -0000 (UTC)
Injection-Info: paganini.bofh.team; logging-data="1511567"; posting-host="6lqOwJyxRLkv94k9QBgAmg.user.paganini.bofh.team"; mail-complaints-to="usenet@bofh.team"; posting-account="9dIQLXBM7WM9KzA+yjdR4A";
User-Agent: flnews/1.3.0pre29 (for GNU/Linux)
Cancel-Lock: sha1:VUg9rohTTuWTLfGTh7GyS66osog=
X-Date: It's Tue Sep 11452 10:41:22 PM CET 1993, the September that never ends.
X-Ed25519-Pub: c0ffee5a36e581eb10f60b2831b3cdb955d2e7ef680dd282a8d43ad8b84b357a
X-Ed25519-Sig: d66eca2ba8df8bd6805ccebdf62a89c4f39f10119a74f4b1bc8d73cd3fc68b0f
2fe521c4ca801ba6cacac11eea60bfd87a2484eb0fda0a88c39a9082b6629101
X-Notice: Filtered by postfilter v. 0.9.3
View all headers

Stefan Claas wrote:
> Rich wrote:
> > Stefan Claas <pollux@tilde.club> wrote:
> > > Rich wrote:
> > > > Stefan Claas <pollux@tilde.club> wrote:
> > > > > *Please* try to write a .ppm (P6) to .png converter (and back) in C(++)
> > > > > and see if you can get the *original* data back. The sci.crypt community
> > > > > and me of course would appreciate your help very much!
> > > >
> > > > Since you have not "shown your work" (apologizes if you show it later,
> > > > I'm replying as I encounter articles in date order) we can't help you
> > > > diagnose your problem.
> > >
> > > > So, to the extent I can tell, you are doing something wrong somewhere.
> > >
> > > Please try your conversion steps with the encrypted image, I already
> > > have shown:
> > >
> > > https://jmp.sh/HZM9ML9f
> > >
> > > It includes a padding byte, needed for ppm so that it is divideable by 3.
> >
> > That PPM is over-sized. The image header claims:
> >
> > P6
> > # Created by GIMP version 2.10.34 PNM plug-in
> > 480 480
> > 255
> >
> > For 480x480 pixels, with a maxval of 255 (1 byte per color) and three
> > color channels, the binary part of the ppm should be:
> >
> > 480*480*3=691,200 bytes long.
> >
> > Instead, the binary part of the ppm is 691228 bytes long (28 bytes too
> > many are present).
> >
> > So when converting it to a PNG, 28 bytes are lost, which do not return
> > when converting back from PNG to PPM.
>
> Yes, I did something wrong. I stick with my fil2png program, which writes
> directly png files from any data. A Python3 version is uploaded as well,
> for those who do not use Go or do not want to use my binaries.

Well, now I managed it with a different approach. I use now bin2ppm.go,
which produces from (binary) input a valid P3 ppm file, which I loaded
into Gimp, converted to .png and re-converted back to ppm in Gimp.

I used the follwoing procedure:

$ bc <<< 64*32*3
6144
$ echo "Hello sci.crypt community. This is a little test with bin2ppm.go" | pad -p 6144 > message.txt
$ bin2ppm 64 32 < message.txt > message.ppm

After that I converted to .png and back to .ppm with Gimp and then:

$ bin2ppm -d < message-gimp-png.ppm > decoded-message.txt

https://jmp.sh/LexKevVb
https://github.com/706f6c6c7578/bin2ppm

--
Regards
Stefan

Subject: Re: Ternary Encoding :-)
From: Chax Plore
Newsgroups: sci.crypt
Organization: i2pn2 (i2pn.org)
Date: Wed, 8 Jan 2025 16:09 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12
Path: news.eternal-september.org!eternal-september.org!feeder3.eternal-september.org!i2pn.org!i2pn2.org!.POSTED!not-for-mail
From: ftilojim@tznvy.pbz (Chax Plore)
Newsgroups: sci.crypt
Subject: Re: Ternary Encoding :-)
Date: Wed, 8 Jan 2025 17:09:09 +0100
Organization: i2pn2 (i2pn.org)
Message-ID: <79e489010c189d51e243b1ce68c8f1176f738202@i2pn2.org>
References: <vl243l$3jkpe$1@paganini.bofh.team>
<vl3q7v$3mbq0$1@paganini.bofh.team> <vl418a$2sv2k$1@dont-email.me>
<vl4el9$3ndf1$1@paganini.bofh.team> <vl4f3g$2vav0$3@dont-email.me>
<vl4mjv$3sqb1$1@paganini.bofh.team> <vl54qf$36b5p$1@dont-email.me>
<vl6770$3v5qv$2@paganini.bofh.team> <vl6lnl$3eumm$1@dont-email.me>
<vl77gt$r10$2@paganini.bofh.team> <vl7d2m$62u1$1@paganini.bofh.team>
<vl7r2o$3or1d$1@dont-email.me>
Reply-To: ftilojim@tznvy.pbz
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 8 Jan 2025 16:09:11 -0000 (UTC)
Injection-Info: i2pn2.org;
logging-data="2632557"; mail-complaints-to="usenet@i2pn2.org";
posting-account="5D73dK+H7GjKFvIMhrW+/Y4rYhlPmfLmJxEmTeWyt8M";
Content-Language: en-GB
In-Reply-To: <vl7r2o$3or1d$1@dont-email.me>
X-Spam-Checker-Version: SpamAssassin 4.0.0
View all headers

On 2025-01-03 06:03, Rich wrote:
> Stefan Claas <pollux@tilde.club> wrote:
>> My old pads program is already updated. It compiled flawlessly for
>> many different platforms, including macOS, but I do not know if they
>> all support TPM 2.0, like Windows and Linux does.
>>
>> https://github.com/706f6c6c7578/pads
>
> Looking over your pads program, while you are retreiving true random
> numbers from the TPM chip, you are introducing a bias when you use the
> random bytes from the TPM to output letters or digits.
>
> Take for example your "letters" arm:
>
> if l {
> random, _ := tpm2.GetRandom(rwc, 5)
> for m := 0; m < 5; m++ {
> fmt.Printf("%c", 'A'+(random[m]%26))
> }
> }
>
> Now, if I've decoded the awful documentation for the TPM2 module
> properly [1] the tpm2.GetRandom call will return five bytes (presumably
> unsigned bytes) of random data.
>
> Then, you loop over the five bytes, outputting the letter that
> corresponds to ASCII A plus the remainder after dividing the byte by
> 26. Which is where you introduce a bias.
>
> A byte will have a value from 0 to 255, for 256 total values.
>
> But 26 does not evenly divide 256. 256/26 ~ 9.846
>
> 26 divides 256 evenly 9 times, no problem here. That covers values 0
> to 233. But for any bytes returned from GetRandom that fall into the
> range 234 to 255, you have only 21 possible values that can return from
> the modulo. So your remainder will be only 0 through 21. You'll never
> get 22 through 25 out, because there is not enough numeric range in the
> "tail" to return 22 through 25 from the modulo. So for any bytes with
> values 234 to 255 from the TPM, you can return A through V but will
> never return W, X, Y or Z.
>
> So your resulting letters will have a bias for A through V.
>
> The fix is easy, first check the value of the byte you are about to
> use, and if it happens to be greater than 233, throw that byte away and
> pull another from the TPM.
Why waste 8.98% of random bytes, especially when generating large keys
from slow source of randomness? Lumbroso's FastDiceRoller algorithm
consumes the exact number of bits needed to produce integer in requested
range: https://arxiv.org/abs/1304.1916

Exhibit 1:
inline uint32_t FastDiceRoller(unsigned int n) {
uint64_t v = 1, c = 0;
while (true) {
v = v << 1;
c = (c << 1) + randombit;
if (v >= n) {
if (c < n) return c;
else {
v = v - n;
c = c - n;
}
}
}
}

Exhibit 2:
function FastDiceRoller(const n: longword): longword;
var
v, c: Int64;
begin
v := 1;
c := 0;
while (true) do
begin
v := (v shl 1);
c := (c shl 1) + RandomBit;
if (v >= n) then
begin
if (c < n) then
begin
result := LongWord(c);
Exit;
end
else
begin
v := v - n;
c := c - n;
end;
end;
end;
end;

--

-----BEGIN PGP PUBLIC KEY FINGERPRINT-----
5745 807C 2B82 14D8 AB06 422C 8876 5DFC 2A51 778C
------END PGP PUBLIC KEY FINGERPRINT------

Subject: Re: Ternary Encoding :-)
From: Rich
Newsgroups: sci.crypt
Organization: A noiseless patient Spider
Date: Wed, 8 Jan 2025 17:07 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13
Path: news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: rich@example.invalid (Rich)
Newsgroups: sci.crypt
Subject: Re: Ternary Encoding :-)
Date: Wed, 8 Jan 2025 17:07:20 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 65
Message-ID: <vlmbc8$2sblj$2@dont-email.me>
References: <vl243l$3jkpe$1@paganini.bofh.team> <vl3q7v$3mbq0$1@paganini.bofh.team> <vl418a$2sv2k$1@dont-email.me> <vl4el9$3ndf1$1@paganini.bofh.team> <vl4f3g$2vav0$3@dont-email.me> <vl4mjv$3sqb1$1@paganini.bofh.team> <vl54qf$36b5p$1@dont-email.me> <vl6770$3v5qv$2@paganini.bofh.team> <vl6lnl$3eumm$1@dont-email.me> <vl77gt$r10$2@paganini.bofh.team> <vl7d2m$62u1$1@paganini.bofh.team> <vl7r2o$3or1d$1@dont-email.me> <79e489010c189d51e243b1ce68c8f1176f738202@i2pn2.org>
Injection-Date: Wed, 08 Jan 2025 18:07:21 +0100 (CET)
Injection-Info: dont-email.me; posting-host="bfc47b907fca7cd15e0f04fd46849852";
logging-data="3026611"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19mU2uAcELIS2Nzmr9+p0yn"
User-Agent: tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.139 (x86_64))
Cancel-Lock: sha1:dZ8FB4UZENHxXC1ZRgj4i0ywtJo=
View all headers

Chax Plore <ftilojim@tznvy.pbz> wrote:
> On 2025-01-03 06:03, Rich wrote:
>> Stefan Claas <pollux@tilde.club> wrote:
>>> My old pads program is already updated. It compiled flawlessly for
>>> many different platforms, including macOS, but I do not know if they
>>> all support TPM 2.0, like Windows and Linux does.
>>>
>>> https://github.com/706f6c6c7578/pads
>>
>> Looking over your pads program, while you are retreiving true random
>> numbers from the TPM chip, you are introducing a bias when you use the
>> random bytes from the TPM to output letters or digits.
>>
>> Take for example your "letters" arm:
>>
>> if l {
>> random, _ := tpm2.GetRandom(rwc, 5)
>> for m := 0; m < 5; m++ {
>> fmt.Printf("%c", 'A'+(random[m]%26))
>> }
>> }
>>
>> Now, if I've decoded the awful documentation for the TPM2 module
>> properly [1] the tpm2.GetRandom call will return five bytes (presumably
>> unsigned bytes) of random data.
>>
>> Then, you loop over the five bytes, outputting the letter that
>> corresponds to ASCII A plus the remainder after dividing the byte by
>> 26. Which is where you introduce a bias.
>>
>> A byte will have a value from 0 to 255, for 256 total values.
>>
>> But 26 does not evenly divide 256. 256/26 ~ 9.846
>>
>> 26 divides 256 evenly 9 times, no problem here. That covers values 0
>> to 233. But for any bytes returned from GetRandom that fall into the
>> range 234 to 255, you have only 21 possible values that can return from
>> the modulo. So your remainder will be only 0 through 21. You'll never
>> get 22 through 25 out, because there is not enough numeric range in the
>> "tail" to return 22 through 25 from the modulo. So for any bytes with
>> values 234 to 255 from the TPM, you can return A through V but will
>> never return W, X, Y or Z.
>>
>> So your resulting letters will have a bias for A through V.
>>
>> The fix is easy, first check the value of the byte you are about to
>> use, and if it happens to be greater than 233, throw that byte away and
>> pull another from the TPM.

> Why waste 8.98% of random bytes, especially when generating large
> keys from slow source of randomness?

My post was to point out the bias, and offer a simple [1] solution that
is easy to understand.

> Lumbroso's FastDiceRoller algorithm
> consumes the exact number of bits needed to produce integer in requested
> range: https://arxiv.org/abs/1304.1916

Interesting algorithm, thanks for the reference, although I'll have to
spend some time later giving it a go over to fully grok what it is
doing.

[1] Note that "simple" does not mean "optimal".

Subject: Re: Ternary Encoding :-)
From: Chris M. Thomasson
Newsgroups: sci.crypt
Organization: A noiseless patient Spider
Date: Sat, 11 Jan 2025 10:00 UTC
References: 1 2 3 4 5 6
Path: news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: chris.m.thomasson.1@gmail.com (Chris M. Thomasson)
Newsgroups: sci.crypt
Subject: Re: Ternary Encoding :-)
Date: Sat, 11 Jan 2025 02:00:31 -0800
Organization: A noiseless patient Spider
Lines: 64
Message-ID: <vltfg0$iaq5$5@dont-email.me>
References: <vl243l$3jkpe$1@paganini.bofh.team>
<vl3q7v$3mbq0$1@paganini.bofh.team> <vl418a$2sv2k$1@dont-email.me>
<vl44rf$3mt70$1@paganini.bofh.team> <vl466f$3mt70$3@paganini.bofh.team>
<vl4f11$2vav0$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 11 Jan 2025 11:00:33 +0100 (CET)
Injection-Info: dont-email.me; posting-host="ce024765705e8ff52c0316de8f77e49c";
logging-data="600901"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+pg9xq1L/A4jTwAjJxsUfqIX72hunnONY="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:nRkWYcQK3l+AVC3W7DW3ZRnJmno=
In-Reply-To: <vl4f11$2vav0$2@dont-email.me>
Content-Language: en-US
View all headers

On 1/1/2025 2:19 PM, Rich wrote:
> Stefan Claas <pollux@tilde.club> wrote:
>> Stefan Claas wrote:
>>> Rich wrote:
>>>> Stefan Claas <pollux@tilde.club> wrote:
>>>>> Stefan Claas wrote:
>>>>>>
>>>>>> echo 'Happy News Year 2025' | ternary
>>>>>> 2112102022020111101010222211010022112012102120110020100021120220
>>>>>> 10000111010121200020221000211000220022020
>>>>>>
>>>>>> $ echo 'Happy News Year 2025' | ternary | ternary -d
>>>>>> Happy News Year 2025
>>>>>>
>>>>>> (My program works with binary data as well.)
>>>>>>
>>>>>
>>>>> The nice thing is we can like xor use ternary exclusive or (txor)
>>>>> to encrypt/decrypt messages. :-)
>>>>>
>>>>> $ echo 'Happy News Year 2025' | ternary > message.txt
>>>>> $ txor -k k-1.txt < message.txt > message_encrypted.txt
>>>>> $ txor -k k-1.txt -d < message_encrypted.txt > message_decrypted.txt
>>>>> $ ternary -d < message_decrypted.txt
>>>>> Happy News Year 2025
>>>>
>>>> How does "ternary exclusive or" differ from the usual boolean xor?
>>>
>>> The usual Boolean XOR (exclusive or) operation takes two binary inputs
>>> and returns true (1) if exactly one of the inputs is true (1), and false
>>> (0) otherwise.
>>>
>>> Ternary XOR takes three binary inputs and returns true (1) if an odd
>>> number of the inputs are true (1).
>>
>> XOR:
>>
>> A B A⊕B
>> 0 0 0
>> 0 1 1
>> 1 0 1
>> 1 1 0
>>
>> Ternary XOR:
>>
>> A B C A⊕B⊕C
>> 0 0 0 0
>> 0 0 1 1
>> 0 1 0 1
>> 0 1 1 0
>> 1 0 0 1
>> 1 0 1 0
>> 1 1 0 0
>> 1 1 1 1
>
> Or simply "even parity".
>
> https://en.wikipedia.org/wiki/Parity_bit

Never forget about NAND cat:

https://youtu.be/IBR_unm3MKg

LOL!

Subject: Re: xorpng
From: Stefan Claas
Newsgroups: sci.crypt
Organization: To protect and to server
Date: Sat, 11 Jan 2025 10:09 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
Path: news.eternal-september.org!eternal-september.org!feeder3.eternal-september.org!newsfeed.bofh.team!paganini.bofh.team!not-for-mail
From: stefan.claas@mail.ru (Stefan Claas)
Newsgroups: sci.crypt
Subject: Re: xorpng
Date: Sat, 11 Jan 2025 11:09:26 +0100
Organization: To protect and to server
Message-ID: <vltg0m$2h11c$1@paganini.bofh.team>
References: <vl243l$3jkpe$1@paganini.bofh.team> <vlcjan$oal1$2@paganini.bofh.team> <vld86b$tdna$1@dont-email.me> <vldj6q$pqvr$2@paganini.bofh.team> <vldk3q$psnq$1@paganini.bofh.team> <vlecdg$13phn$2@dont-email.me> <vlenpl$rjtu$1@paganini.bofh.team> <vles9r$16v92$2@dont-email.me> <vlesgd$rrnh$1@paganini.bofh.team> <vlf27d$17vsk$5@dont-email.me> <vlf2cd$17vsk$6@dont-email.me> <vlf3ae$s6de$1@paganini.bofh.team> <vlfje9$1ande$5@dont-email.me> <vlgn7m$13ki6$1@paganini.bofh.team> <vlhklq$1qrjs$1@dont-email.me> <vljkka$1d6k8$1@paganini.bofh.team> <vlk724$1e44f$1@paganini.bofh.team>
Mime-Version: 1.0
Injection-Date: Sat, 11 Jan 2025 10:09:26 -0000 (UTC)
Injection-Info: paganini.bofh.team; logging-data="2655276"; posting-host="fWMvsfsAKClk+dLC0zX7xw.user.paganini.bofh.team"; mail-complaints-to="usenet@bofh.team"; posting-account="9dIQLXBM7WM9KzA+yjdR4A";
User-Agent: flnews/1.3.0pre29 (for GNU/Linux)
Cancel-Lock: sha1:eSpt31m/6J3EBwfRyI4tfl2Fmpo=
X-Notice: Filtered by postfilter v. 0.9.3
X-Ed25519-Pub: c0ffee5a36e581eb10f60b2831b3cdb955d2e7ef680dd282a8d43ad8b84b357a
X-Date: It's Sat Sep 11456 11:09:27 AM CET 1993, the September that never ends.
X-Ed25519-Sig: 35f255f8e39cf5ff0006f72303fdcc967f9fcb05c68e0b855822fcc7caa64940
2c4f9351fb00b8b0e5742b95113aa72fdee09ea48f0be1d939ce249882b10804
View all headers

Stefan Claas wrote:
> Stefan Claas wrote:
> > Rich wrote:
> > > Stefan Claas <pollux@tilde.club> wrote:
> > > > Rich wrote:
> > > > > Stefan Claas <pollux@tilde.club> wrote:
> > > > > > *Please* try to write a .ppm (P6) to .png converter (and back) in C(++)
> > > > > > and see if you can get the *original* data back. The sci.crypt community
> > > > > > and me of course would appreciate your help very much!
> > > > >
> > > > > Since you have not "shown your work" (apologizes if you show it later,
> > > > > I'm replying as I encounter articles in date order) we can't help you
> > > > > diagnose your problem.
> > > >
> > > > > So, to the extent I can tell, you are doing something wrong somewhere.
> > > >
> > > > Please try your conversion steps with the encrypted image, I already
> > > > have shown:
> > > >
> > > > https://jmp.sh/HZM9ML9f
> > > >
> > > > It includes a padding byte, needed for ppm so that it is divideable by 3.
> > >
> > > That PPM is over-sized. The image header claims:
> > >
> > > P6
> > > # Created by GIMP version 2.10.34 PNM plug-in
> > > 480 480
> > > 255
> > >
> > > For 480x480 pixels, with a maxval of 255 (1 byte per color) and three
> > > color channels, the binary part of the ppm should be:
> > >
> > > 480*480*3=691,200 bytes long.
> > >
> > > Instead, the binary part of the ppm is 691228 bytes long (28 bytes too
> > > many are present).
> > >
> > > So when converting it to a PNG, 28 bytes are lost, which do not return
> > > when converting back from PNG to PPM.
> >
> > Yes, I did something wrong. I stick with my fil2png program, which writes
> > directly png files from any data. A Python3 version is uploaded as well,
> > for those who do not use Go or do not want to use my binaries.
>
> Well, now I managed it with a different approach. I use now bin2ppm.go,
> which produces from (binary) input a valid P3 ppm file, which I loaded
> into Gimp, converted to .png and re-converted back to ppm in Gimp.
>
> I used the follwoing procedure:
>
> $ bc <<< 64*32*3
> 6144
> $ echo "Hello sci.crypt community. This is a little test with bin2ppm.go" | pad -p 6144 > message.txt
> $ bin2ppm 64 32 < message.txt > message.ppm
>
> After that I converted to .png and back to .ppm with Gimp and then:
>
> $ bin2ppm -d < message-gimp-png.ppm > decoded-message.txt
>
> https://jmp.sh/LexKevVb
> https://github.com/706f6c6c7578/bin2ppm

To make things simple again, I uploaded pngcrypt, so that one can use
file2png with pngcrypt. :-) https://github.com/706f6c6c7578/pngcrypt

--
Regards
Stefan

Subject: Re: xorpng
From: Stefan Claas
Newsgroups: sci.crypt
Organization: To protect and to server
Date: Sat, 11 Jan 2025 10:15 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
Path: news.eternal-september.org!eternal-september.org!feeder3.eternal-september.org!nntp.comgw.net!newsfeed.bofh.team!paganini.bofh.team!not-for-mail
From: stefan.claas@mail.ru (Stefan Claas)
Newsgroups: sci.crypt
Subject: Re: xorpng
Date: Sat, 11 Jan 2025 11:15:13 +0100
Organization: To protect and to server
Message-ID: <vltgbh$2h11c$2@paganini.bofh.team>
References: <vl243l$3jkpe$1@paganini.bofh.team> <vlcjan$oal1$2@paganini.bofh.team> <vld86b$tdna$1@dont-email.me> <vldj6q$pqvr$2@paganini.bofh.team> <vldk3q$psnq$1@paganini.bofh.team> <vlecdg$13phn$2@dont-email.me> <vlenpl$rjtu$1@paganini.bofh.team> <vles9r$16v92$2@dont-email.me> <vlesgd$rrnh$1@paganini.bofh.team> <vlf27d$17vsk$5@dont-email.me> <vlf2cd$17vsk$6@dont-email.me> <vlf3ae$s6de$1@paganini.bofh.team> <vlfje9$1ande$5@dont-email.me> <vlgn7m$13ki6$1@paganini.bofh.team> <vlhklq$1qrjs$1@dont-email.me> <vljkka$1d6k8$1@paganini.bofh.team> <vlk724$1e44f$1@paganini.bofh.team> <vltg0m$2h11c$1@paganini.bofh.team>
Mime-Version: 1.0
Injection-Date: Sat, 11 Jan 2025 10:15:13 -0000 (UTC)
Injection-Info: paganini.bofh.team; logging-data="2655276"; posting-host="fWMvsfsAKClk+dLC0zX7xw.user.paganini.bofh.team"; mail-complaints-to="usenet@bofh.team"; posting-account="9dIQLXBM7WM9KzA+yjdR4A";
User-Agent: flnews/1.3.0pre29 (for GNU/Linux)
Cancel-Lock: sha1:b8tTvURKnI2l04EDel2eom/DjK0=
X-Ed25519-Sig: 3ab6d11b95a7bac3010e8039459858845dd42b5bacf118a1b111d93a15bde0a9
d12af0362a16cf11e7a7d9f4f29e5676bec4ad8b5df09e67609267d86b9e8f02
X-Date: It's Sat Sep 11456 11:15:13 AM CET 1993, the September that never ends.
X-Notice: Filtered by postfilter v. 0.9.3
X-Ed25519-Pub: c0ffee5a36e581eb10f60b2831b3cdb955d2e7ef680dd282a8d43ad8b84b357a
View all headers

Stefan Claas wrote:

> To make things simple again, I uploaded pngcrypt, so that one can use
> file2png with pngcrypt. :-) https://github.com/706f6c6c7578/pngcrypt

https://jmp.sh/ENeHGh9r

$ echo "I wish the sci.crypt community a nice weekend!" | file2png | pngcrypt -p test > message.png

$ pngcrypt -d -p test < message.png | file2png -d
I wish the sci.crypt community a nice weekend!

--
Regards
Stefan

Subject: Re: xorpng
From: Chris M. Thomasson
Newsgroups: sci.crypt
Organization: A noiseless patient Spider
Date: Sat, 11 Jan 2025 10:47 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
Path: news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: chris.m.thomasson.1@gmail.com (Chris M. Thomasson)
Newsgroups: sci.crypt
Subject: Re: xorpng
Date: Sat, 11 Jan 2025 02:47:14 -0800
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <vlti7j$it2n$1@dont-email.me>
References: <vl243l$3jkpe$1@paganini.bofh.team>
<vlcjan$oal1$2@paganini.bofh.team> <vld86b$tdna$1@dont-email.me>
<vldj6q$pqvr$2@paganini.bofh.team> <vldk3q$psnq$1@paganini.bofh.team>
<vlecdg$13phn$2@dont-email.me> <vlenpl$rjtu$1@paganini.bofh.team>
<vles9r$16v92$2@dont-email.me> <vlesgd$rrnh$1@paganini.bofh.team>
<vlf27d$17vsk$5@dont-email.me> <vlf2cd$17vsk$6@dont-email.me>
<vlf3ae$s6de$1@paganini.bofh.team> <vlfje9$1ande$5@dont-email.me>
<vlgn7m$13ki6$1@paganini.bofh.team> <vlhklq$1qrjs$1@dont-email.me>
<vljkka$1d6k8$1@paganini.bofh.team> <vlk724$1e44f$1@paganini.bofh.team>
<vltg0m$2h11c$1@paganini.bofh.team> <vltgbh$2h11c$2@paganini.bofh.team>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 11 Jan 2025 11:47:16 +0100 (CET)
Injection-Info: dont-email.me; posting-host="ce024765705e8ff52c0316de8f77e49c";
logging-data="619607"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19qaMLWSexypPkOZqr/8Yg1LxgJieizLWc="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:/31H0oKZydOmqN8MfEzPmC48ido=
Content-Language: en-US
In-Reply-To: <vltgbh$2h11c$2@paganini.bofh.team>
View all headers

On 1/11/2025 2:15 AM, Stefan Claas wrote:
> Stefan Claas wrote:
>
>> To make things simple again, I uploaded pngcrypt, so that one can use
>> file2png with pngcrypt. :-) https://github.com/706f6c6c7578/pngcrypt
>
> https://jmp.sh/ENeHGh9r
>
> $ echo "I wish the sci.crypt community a nice weekend!" | file2png | pngcrypt -p test > message.png
>
> $ pngcrypt -d -p test < message.png | file2png -d
> I wish the sci.crypt community a nice weekend!
>

Make a big one, say 3840x2160 encrypting the same byte. See if you can
visually see any patterns wrt the encryption algo itself?

Subject: Re: xorpng
From: Chris M. Thomasson
Newsgroups: sci.crypt
Organization: A noiseless patient Spider
Date: Sat, 11 Jan 2025 10:48 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Path: news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: chris.m.thomasson.1@gmail.com (Chris M. Thomasson)
Newsgroups: sci.crypt
Subject: Re: xorpng
Date: Sat, 11 Jan 2025 02:48:44 -0800
Organization: A noiseless patient Spider
Lines: 22
Message-ID: <vltiad$it2n$2@dont-email.me>
References: <vl243l$3jkpe$1@paganini.bofh.team>
<vlcjan$oal1$2@paganini.bofh.team> <vld86b$tdna$1@dont-email.me>
<vldj6q$pqvr$2@paganini.bofh.team> <vldk3q$psnq$1@paganini.bofh.team>
<vlecdg$13phn$2@dont-email.me> <vlenpl$rjtu$1@paganini.bofh.team>
<vles9r$16v92$2@dont-email.me> <vlesgd$rrnh$1@paganini.bofh.team>
<vlf27d$17vsk$5@dont-email.me> <vlf2cd$17vsk$6@dont-email.me>
<vlf3ae$s6de$1@paganini.bofh.team> <vlfje9$1ande$5@dont-email.me>
<vlgn7m$13ki6$1@paganini.bofh.team> <vlhklq$1qrjs$1@dont-email.me>
<vljkka$1d6k8$1@paganini.bofh.team> <vlk724$1e44f$1@paganini.bofh.team>
<vltg0m$2h11c$1@paganini.bofh.team> <vltgbh$2h11c$2@paganini.bofh.team>
<vlti7j$it2n$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 11 Jan 2025 11:48:46 +0100 (CET)
Injection-Info: dont-email.me; posting-host="ce024765705e8ff52c0316de8f77e49c";
logging-data="619607"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18jKAwuKN4MLS4ufBmZVitUBSC6vLM3/DU="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:RIFzBpmlpj87ovyKPKbe3d6S1Iw=
Content-Language: en-US
In-Reply-To: <vlti7j$it2n$1@dont-email.me>
View all headers

On 1/11/2025 2:47 AM, Chris M. Thomasson wrote:
> On 1/11/2025 2:15 AM, Stefan Claas wrote:
>> Stefan Claas wrote:
>>
>>> To make things simple again, I uploaded pngcrypt, so that one can use
>>> file2png with pngcrypt. :-) https://github.com/706f6c6c7578/pngcrypt
>>
>> https://jmp.sh/ENeHGh9r
>>
>> $ echo "I wish the sci.crypt community a nice weekend!" | file2png |
>> pngcrypt -p test > message.png
>>
>> $ pngcrypt -d -p test < message.png | file2png -d
>> I wish the sci.crypt community a nice weekend!
>>
>
> Make a big one, say 3840x2160 encrypting the same byte. See if you can
> visually see any patterns wrt the encryption algo itself?

I understand that the png can carry any payload generated from any
encryption algo, but looking at the ciphertext in a visual medium is
useful for sure.

Subject: Re: xorpng
From: Stefan Claas
Newsgroups: sci.crypt
Organization: To protect and to server
Date: Sat, 11 Jan 2025 12:18 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Path: news.eternal-september.org!eternal-september.org!feeder3.eternal-september.org!newsfeed.bofh.team!paganini.bofh.team!not-for-mail
From: stefan.claas@mail.ru (Stefan Claas)
Newsgroups: sci.crypt
Subject: Re: xorpng
Date: Sat, 11 Jan 2025 13:18:35 +0100
Organization: To protect and to server
Message-ID: <vltnir$2hdp9$1@paganini.bofh.team>
References: <vl243l$3jkpe$1@paganini.bofh.team> <vlcjan$oal1$2@paganini.bofh.team> <vld86b$tdna$1@dont-email.me> <vldj6q$pqvr$2@paganini.bofh.team> <vldk3q$psnq$1@paganini.bofh.team> <vlecdg$13phn$2@dont-email.me> <vlenpl$rjtu$1@paganini.bofh.team> <vles9r$16v92$2@dont-email.me> <vlesgd$rrnh$1@paganini.bofh.team> <vlf27d$17vsk$5@dont-email.me> <vlf2cd$17vsk$6@dont-email.me> <vlf3ae$s6de$1@paganini.bofh.team> <vlfje9$1ande$5@dont-email.me> <vlgn7m$13ki6$1@paganini.bofh.team> <vlhklq$1qrjs$1@dont-email.me> <vljkka$1d6k8$1@paganini.bofh.team> <vlk724$1e44f$1@paganini.bofh.team> <vltg0m$2h11c$1@paganini.bofh.team> <vltgbh$2h11c$2@paganini.bofh.team> <vlti7j$it2n$1@dont-email.me>
Mime-Version: 1.0
Injection-Date: Sat, 11 Jan 2025 12:18:35 -0000 (UTC)
Injection-Info: paganini.bofh.team; logging-data="2668329"; posting-host="fWMvsfsAKClk+dLC0zX7xw.user.paganini.bofh.team"; mail-complaints-to="usenet@bofh.team"; posting-account="9dIQLXBM7WM9KzA+yjdR4A";
User-Agent: flnews/1.3.0pre29 (for GNU/Linux)
Cancel-Lock: sha1:oPBFzfxzR4vZKa+wmtGQnDgFkc4=
X-Date: It's Sat Sep 11456 01:18:35 PM CET 1993, the September that never ends.
X-Notice: Filtered by postfilter v. 0.9.3
X-Ed25519-Sig: 30295fd6bbc70070b4e448e8180db69535c5abb4f9c30b5949f73400dc6924a6
f2dbbd05704c27fcc7889feb92e20fcf20c172dea3baddd98a6f1785fc309801
X-Ed25519-Pub: c0ffee5a36e581eb10f60b2831b3cdb955d2e7ef680dd282a8d43ad8b84b357a
View all headers

Chris M. Thomasson wrote:
> On 1/11/2025 2:15 AM, Stefan Claas wrote:
> > Stefan Claas wrote:
> >
> > > To make things simple again, I uploaded pngcrypt, so that one can use
> > > file2png with pngcrypt. :-) https://github.com/706f6c6c7578/pngcrypt
> >
> > https://jmp.sh/ENeHGh9r
> >
> > $ echo "I wish the sci.crypt community a nice weekend!" | file2png | pngcrypt -p test > message.png
> >
> > $ pngcrypt -d -p test < message.png | file2png -d
> > I wish the sci.crypt community a nice weekend!
> >
>
> Make a big one, say 3840x2160 encrypting the same byte. See if you can
> visually see any patterns wrt the encryption algo itself?

Please try it yourself and report back, or haven't you installed Go yet?
;-)

--
Regards
Stefan

Subject: Re: xorpng
From: Chris M. Thomasson
Newsgroups: sci.crypt
Organization: A noiseless patient Spider
Date: Sun, 12 Jan 2025 02:34 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
Path: news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: chris.m.thomasson.1@gmail.com (Chris M. Thomasson)
Newsgroups: sci.crypt
Subject: Re: xorpng
Date: Sat, 11 Jan 2025 18:34:52 -0800
Organization: A noiseless patient Spider
Lines: 25
Message-ID: <vlv9od$sa4k$4@dont-email.me>
References: <vl243l$3jkpe$1@paganini.bofh.team>
<vlcjan$oal1$2@paganini.bofh.team> <vld86b$tdna$1@dont-email.me>
<vldj6q$pqvr$2@paganini.bofh.team> <vldk3q$psnq$1@paganini.bofh.team>
<vlecdg$13phn$2@dont-email.me> <vlenpl$rjtu$1@paganini.bofh.team>
<vles9r$16v92$2@dont-email.me> <vlesgd$rrnh$1@paganini.bofh.team>
<vlf27d$17vsk$5@dont-email.me> <vlf2cd$17vsk$6@dont-email.me>
<vlf3ae$s6de$1@paganini.bofh.team> <vlfje9$1ande$5@dont-email.me>
<vlgn7m$13ki6$1@paganini.bofh.team> <vlhklq$1qrjs$1@dont-email.me>
<vljkka$1d6k8$1@paganini.bofh.team> <vlk724$1e44f$1@paganini.bofh.team>
<vltg0m$2h11c$1@paganini.bofh.team> <vltgbh$2h11c$2@paganini.bofh.team>
<vlti7j$it2n$1@dont-email.me> <vltnir$2hdp9$1@paganini.bofh.team>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 12 Jan 2025 03:34:54 +0100 (CET)
Injection-Info: dont-email.me; posting-host="5328dbe39382283b57a1e72b814449ac";
logging-data="927892"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19ycCsrETHEshLd5FSIIDIMDCodMsV0w04="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:6IU9UvfD8bMRqnUGHIJbBZQX1io=
Content-Language: en-US
In-Reply-To: <vltnir$2hdp9$1@paganini.bofh.team>
View all headers

On 1/11/2025 4:18 AM, Stefan Claas wrote:
> Chris M. Thomasson wrote:
>> On 1/11/2025 2:15 AM, Stefan Claas wrote:
>>> Stefan Claas wrote:
>>>
>>>> To make things simple again, I uploaded pngcrypt, so that one can use
>>>> file2png with pngcrypt. :-) https://github.com/706f6c6c7578/pngcrypt
>>>
>>> https://jmp.sh/ENeHGh9r
>>>
>>> $ echo "I wish the sci.crypt community a nice weekend!" | file2png | pngcrypt -p test > message.png
>>>
>>> $ pngcrypt -d -p test < message.png | file2png -d
>>> I wish the sci.crypt community a nice weekend!
>>>
>>
>> Make a big one, say 3840x2160 encrypting the same byte. See if you can
>> visually see any patterns wrt the encryption algo itself?
>
> Please try it yourself and report back, or haven't you installed Go yet?
> ;-)
>

Nope. I have no Go on the system I am using now. Well, humm... I should
have some more time later on this week.

Pages:1234

rocksolid light 0.9.8
clearnet tor