-Vit-
21st February 2011, 02:34
Thanks. A good illustration that encryption schemes that rely merely on cutting up the image are amenable to brute-force image analysis. Per-pixel randomization can't be attacked that way, as long as it's done properly there should be no correlation to find in the encrypted pixels. I recently rewrote AddGrainC, for a completely different reason - to make it use less memory - I never posted it because it didn't really save that much memory. But this experiment interested me - I might add the option to output cryptographically secure random data for this kind of purpose. I've already based it on the Mersenne Twister random number generator, which afaik can be trivially turned into a secure sequence. I'd have to drop the cache, which would make that mode slower though...