Deutsch   English   Français   Italiano  
<vobj0o$t1cd$1@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!news.misty.com!weretis.net!feeder9.news.weretis.net!news.quux.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: Richard Heathfield <rjh@cpax.org.uk>
Newsgroups: sci.crypt
Subject: Re: xorpng
Date: Mon, 10 Feb 2025 00:59:04 +0000
Organization: Fix this later
Lines: 39
Message-ID: <vobj0o$t1cd$1@dont-email.me>
References: <vl243l$3jkpe$1@paganini.bofh.team>
 <vl8urh$8hto$1@paganini.bofh.team> <vl9mkg$3796$5@dont-email.me>
 <vlbtbm$i8qt$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>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 10 Feb 2025 01:59:05 +0100 (CET)
Injection-Info: dont-email.me; posting-host="9fb0f5374b7905e948c33f2106e56d13";
	logging-data="951693"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX19UJ7A+FhIR5eCsj0AX7Cka32zw2DBs9BClni3H0xsmZg=="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:8oOn72QxSQq30aOfbbcbRQkaVbk=
In-Reply-To: <vld86b$tdna$1@dont-email.me>
Content-Language: en-GB
Bytes: 2965

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).

-- 
Richard Heathfield
Email: rjh at cpax dot org dot uk
"Usenet is a strange place" - dmr 29 July 1999
Sig line 4 vacant - apply within