Re: xorpng

Liste des GroupesRevenir à s crypt 
Sujet : Re: xorpng
De : rich (at) *nospam* example.invalid (Rich)
Groupes : sci.crypt
Date : 06. Jan 2025, 04:29:32
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vlfims$1ande$4@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14
User-Agent : tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.139 (x86_64))
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?

Date Sujet#  Auteur
1 Jan 25 * Ternary Encoding :-)99Stefan Claas
1 Jan 25 +* Re: Ternary Encoding :-)25Stefan Claas
1 Jan 25 i`* Re: Ternary Encoding :-)24Rich
1 Jan 25 i +* Re: Ternary Encoding :-)6Stefan Claas
1 Jan 25 i i+* Re: Ternary Encoding :-)4Stefan Claas
1 Jan 25 i ii+- Re: Ternary Encoding :-)1Stefan Claas
1 Jan 25 i ii`* Re: Ternary Encoding :-)2Rich
11 Jan 25 i ii `- Re: Ternary Encoding :-)1Chris M. Thomasson
1 Jan 25 i i`- Re: Ternary Encoding :-)1Rich
1 Jan 25 i `* Re: Ternary Encoding :-)17Stefan Claas
1 Jan 25 i  `* Re: Ternary Encoding :-)16Rich
2 Jan 25 i   `* Re: Ternary Encoding :-)15Stefan Claas
2 Jan 25 i    `* Re: Ternary Encoding :-)14Rich
2 Jan 25 i     `* Re: Ternary Encoding :-)13Stefan Claas
2 Jan 25 i      +* Re: Ternary Encoding :-)4Stefan Claas
2 Jan 25 i      i`* Re: Ternary Encoding :-)3Rich
3 Jan 25 i      i `* Re: Ternary Encoding :-)2Stefan Claas
3 Jan 25 i      i  `- Re: Ternary Encoding :-)1Rich
2 Jan 25 i      `* Re: Ternary Encoding :-)8Rich
3 Jan 25 i       `* Re: Ternary Encoding :-)7Stefan Claas
3 Jan 25 i        `* Re: Ternary Encoding :-)6Stefan Claas
3 Jan 25 i         +- Re: Ternary Encoding :-)1Rich
3 Jan 25 i         `* Re: Ternary Encoding :-)4Rich
3 Jan 25 i          +- Re: Ternary Encoding :-)1Stefan Claas
8 Jan 25 i          `* Re: Ternary Encoding :-)2Chax Plore
8 Jan 25 i           `- Re: Ternary Encoding :-)1Rich
3 Jan 25 `* Re: Ternary Encoding :-)73Chris M. Thomasson
3 Jan 25  `* Re: Ternary Encoding :-)72Stefan Claas
3 Jan 25   `* Re: Ternary Encoding :-)71Chris M. Thomasson
4 Jan 25    `* xorpng (was: Ternary Encoding :-))70Stefan Claas
4 Jan 25     +- Re: xorpng1Stefan Claas
4 Jan 25     `* Re: xorpng68Chris M. Thomasson
4 Jan 25      `* Re: xorpng67Stefan Claas
4 Jan 25       `* Re: xorpng66Chris M. Thomasson
4 Jan 25        `* Re: xorpng65Chris M. Thomasson
4 Jan 25         `* Re: xorpng64Stefan Claas
4 Jan 25          `* Re: xorpng63Chris M. Thomasson
4 Jan 25           `* Re: xorpng62Stefan Claas
4 Jan 25            +* Re: xorpng53Chris M. Thomasson
5 Jan 25            i`* Re: xorpng52Stefan Claas
5 Jan 25            i `* Re: xorpng51Rich
5 Jan 25            i  `* Re: xorpng50Stefan Claas
5 Jan 25            i   +* Re: xorpng8Chris M. Thomasson
5 Jan 25            i   i`* Re: xorpng7Stefan Claas
5 Jan 25            i   i `* Re: xorpng6Chris M. Thomasson
5 Jan 25            i   i  +- Re: xorpng1Chris M. Thomasson
5 Jan 25            i   i  `* Re: xorpng4Stefan Claas
5 Jan 25            i   i   `* Re: xorpng3Chris M. Thomasson
5 Jan 25            i   i    `* Re: xorpng2Stefan Claas
5 Jan 25            i   i     `- Re: xorpng1Chris M. Thomasson
5 Jan 25            i   `* Re: xorpng41Rich
5 Jan 25            i    +* Re: xorpng36Stefan Claas
5 Jan 25            i    i+* Re: xorpng27Stefan Claas
5 Jan 25            i    ii`* Re: xorpng26Rich
5 Jan 25            i    ii `* Re: xorpng25Stefan Claas
5 Jan 25            i    ii  `* Re: xorpng24Rich
5 Jan 25            i    ii   `* Re: xorpng23Stefan Claas
6 Jan 25            i    ii    +* Re: xorpng21Stefan Claas
6 Jan 25            i    ii    i+* Re: xorpng2Chris M. Thomasson
6 Jan 25            i    ii    ii`- Re: xorpng1Chris M. Thomasson
6 Jan 25            i    ii    i+- Re: xorpng1Chris M. Thomasson
6 Jan 25            i    ii    i`* Re: xorpng17Rich
6 Jan 25            i    ii    i `* Re: xorpng16Stefan Claas
6 Jan 25            i    ii    i  +* Re: xorpng5Stefan Claas
6 Jan 25            i    ii    i  i+* Re: xorpng3Stefan Claas
7 Jan 25            i    ii    i  ii`* Re: xorpng2Jan Panteltje
7 Jan 25            i    ii    i  ii `- Re: xorpng1Stefan Claas
7 Jan 25            i    ii    i  i`- Re: xorpng1Rich
6 Jan 25            i    ii    i  `* Re: xorpng10Rich
7 Jan 25            i    ii    i   `* Re: xorpng9Stefan Claas
7 Jan 25            i    ii    i    `* Re: xorpng8Stefan Claas
11 Jan 25            i    ii    i     `* Re: xorpng7Stefan Claas
11 Jan 25            i    ii    i      `* Re: xorpng6Stefan Claas
11 Jan 25            i    ii    i       `* Re: xorpng5Chris M. Thomasson
11 Jan 25            i    ii    i        +- Re: xorpng1Chris M. Thomasson
11 Jan 25            i    ii    i        `* Re: xorpng3Stefan Claas
12 Jan 25            i    ii    i         `* Re: xorpng2Chris M. Thomasson
5 Mar 25            i    ii    i          `- Re: xorpng1Stefan Claas
6 Jan 25            i    ii    `- Re: xorpng1Rich
5 Jan 25            i    i+- Re: xorpng1Rich
5 Jan 25            i    i`* Re: xorpng7Chris M. Thomasson
5 Jan 25            i    i +* Re: xorpng5Chris M. Thomasson
5 Jan 25            i    i i`* Re: xorpng4Stefan Claas
5 Jan 25            i    i i +* Re: xorpng2Chris M. Thomasson
6 Jan 25            i    i i i`- Re: xorpng1Rich
5 Jan 25            i    i i `- Re: xorpng1Chris M. Thomasson
6 Jan 25            i    i `- Re: xorpng1Rich
10 Feb 25            i    `* Re: xorpng4Richard Heathfield
10 Feb 25            i     +* Re: xorpng2Rich
10 Feb 25            i     i`- Re: xorpng1Richard Heathfield
10 Feb 25            i     `- Re: xorpng1Jan Panteltje
4 Jan 25            `* Re: xorpng8Chris M. Thomasson
4 Jan 25             +* Re: xorpng2Chris M. Thomasson
5 Jan 25             i`- Re: xorpng1Stefan Claas
5 Jan 25             `* Re: xorpng5Stefan Claas
5 Jan 25              `* Re: xorpng4Stefan Claas
5 Jan 25               `* Re: xorpng3Chris M. Thomasson
5 Jan 25                `* Re: xorpng2Stefan Claas
5 Jan 25                 `- Re: xorpng1Chris M. Thomasson

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal