Re: A new container with an old header

Darek Hisc <[email protected]> Fri, 14 Jul 2023 15:59:09 +0000
Newsgroups dev.linux.lists.cryptsetup
Message-ID <[email protected]>
> I strongly advise against using MD5 for anything where cryptographic strength matters.
In my action I descended MD5 via sha256sum :)

> There are other ways
> as well, like using dd to graft data from one file into another; I
> picked one method, not really to the exclusion of others but to keep
> things reasonably straight-forward in my example.
I like to learn (when I have a bit of free time) and I came up with this alternative on my own:
dd if=/dev/random count=100M iflag=count_bytes oflag=append conv=notrunc of=/my-container
It seems to be working properly.
What do you think?