making files opposite from themselves (100% change)
Miguel Mendez
flynn at energyhq.es.eu.org
Mon Jul 5 14:50:20 PDT 2004
On Mon, 5 Jul 2004 22:59:55 +0200
Miguel Mendez <flynn at energyhq.es.eu.org> wrote:
> The xor operation of a byte/word/dword with itself does that. You
> could setup a buffer of the desired % of bytes you want to change,
> read the bytes, xor them (^ in C) with itself and write back. It's
> trivial in C/Perl/python/whathaveyou.
This, of course, is supposed to read : the bitwise not operation. Never
post before coffee.
Cheers,
--
Miguel Mendez <flynn at energyhq.es.eu.org>
http://www.energyhq.es.eu.org
PGP Key: 0xDC8514F1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20040705/452e6ad4/attachment.bin
More information about the freebsd-questions
mailing list