Embed and extract hidden files into and from PNG images
- To encrypt files into an image:
var ImgEnc = new ImageEncryptDecrypt(new Bitmap("BaseBitmap.png"));
img.Encrypt(new sting[]{"fileToAddToBaseImage1.png"}, "SaveFileName.png");
- To Decrypt files from an already encrypted image:
var ImgDecr = new ImageEncryptDecrypt(new Bitmap("BaseBitmap.png"));
var decryptedFiles = ImgDecr.Decrypt();
- To open one of the decrypted files:
File.WriteAllBytes("TempFileName.png", decryptedFiles[0].Data);
System.Diagnostics.Process.Start("TempFileName.png");
- Or you can just look at the ImageEncryptorUI to see a fully working example!
- If you have any ideas or issues, the issue tracker is your friend. Alternatively please email me (Corne Vermeulen) on [email protected]