Sysop: | Amessyroom |
---|---|
Location: | Fayetteville, NC |
Users: | 28 |
Nodes: | 6 (0 / 6) |
Uptime: | 52:58:13 |
Calls: | 422 |
Files: | 1,025 |
Messages: | 90,610 |
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?
On 05/01/2025 06:17, 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?
Sorry to come late to the party.
I can think of two places where image formats can be useful in
cryptography.
Firstly, lossless image formats can be used to steganographically
hide small ciphertexts in the low bits without seriously
degrading the image.
Secondly, if you want an eyeball on how tangled your bits are,
rip off the image's metadata, encrypt the bitmap data, bolt the
metadata back on, and visually inspect the resulting image and
look for patterns (or, if you used Tux - of course you did - any
remnants of penguin).
Stefan appeared to be making a program that, given an actual working
PNG image file, would root around in the PNG file format itself, and
encrypt just the internal bitmap data.
On 05/01/2025 06:17, 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?
Sorry to come late to the party.
I can think of two places where image formats can be useful in
cryptography.
Firstly, lossless image formats can be used to steganographically
hide small ciphertexts in the low bits without seriously
degrading the image.
Secondly, if you want an eyeball on how tangled your bits are,
rip off the image's metadata, encrypt the bitmap data, bolt the
metadata back on, and visually inspect the resulting image and
look for patterns (or, if you used Tux - of course you did - any
remnants of penguin).
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.