Re: Subject: OT: LUKS encryption -- block by block, file by file, or "one big lump"
Thanks to all who replied -- two clarifications requested below:
On Wednesday, March 08, 2023 09:45:33 PM David Christensen wrote:
...
> A few years ago, I did a "bit rot" experiment.
Thanks for doing that experiment!
...
> I wiped a disk, applied
> a partitioning scheme, created a partition, formatted the partition with
> LUKS (with default encryption), opened the LUKS container, created an
> ext4 filesystem, mounted the filesystem, and wrote a large file
> containing a predictable pattern. I used hexdump(1) to find the
> encrypted blocks on disk that corresponded to the file. I used dd(1) to
> write directly to the disk and change some portion of a block underlying
> the file. I then viewed the file contents with standard userland tools
> (e.g. less(1)). To my dismay, the tools could read the file without
> error and the file contents were corrupt!
Just so I'm clear on that last sentence, what you're saying is that less was
able to read the file (view the content) but the file / content was corrupt?
And, was it the entire file that was corrupt?
> I seem to recall that the
> number of damaged bytes was the same on disc and in the file.
Maybe that answered my question -- I guess that is saying that only a few
bytes in the file were corrupt, and they were localized to one portion of the
file?
Thanks!
--
rhk
(sig revised 20230224 -- added first paragraph)
| You do not have my permission to use this email to train an AI.
If you reply: snip, snip, and snip again; leave attributions; avoid HTML;
avoid top posting; and keep it "on list". (Oxford comma (and semi-colon)
included at no charge.) If you revise the topic, change the Subject: line.
If you change the topic, start a new thread.
Writing is often meant for others to read and understand (legal documents
excepted?) -- make it easier for your reader by various means, including
liberal use of whitespace (short paragraphs, separated by whitespace / blank
lines) and minimal use of (obscure?) jargon, abbreviations, acronyms, and
references.
If someone has already responded to a question, decide whether any response
you add will be helpful or not ...
A picture is worth a thousand words. A video (or "audio"): not so much --
divide by 10 for each minute of video (or audio) or create a transcript and
edit it to 10% of the original.
A speaker who uses ahhs, ums, or such may have a real physical or mental
disability, or may be showing disrespect for his listeners by not properly
preparing in advance and thinking before speaking. (Remember Cicero who did
not have enough time to write a short missive.) (That speaker might have been
"trained" to do this by being interrupted often if he pauses.)
A radio (or TV) station which broadcasts speakers with high pitched voices (or
very low pitched / gravelly voices) (which older people might not be able to
hear properly) disrespects its listeners. Likewise if it broadcasts
extraneous or disturbing sounds (like gunfire or crying), or broadcasts
speakers using their native language (with or without an overdubbed
translation).
A person who writes a sig this long probably has issues and disrespects (and
offends) a large number of readers. ;-)
'
Reply to: