I have a question about encrypted images in kotlin android. In my case I used kali linux to treat the pictures and the following command (ImageMagick 6.9.11) to convert my jpg is:
convert pic01.jpg -encipher paraphrase.txt encryptedpic01.jpg
So it's ok. When I open the image is encrypted. It looks like an old tv with no signal. After that I copy this image into my android app drawable folder. So It loads as encrypted is. I used this lines of code:
var id: Int
val file = "e$filename"
id = resources.getIdentifier(file, "drawable", packageName)
if (id > 0) {
binding.imgFoto.setImageResource(id)
}
I wonder if it's possible to decrypt the image passing its paraphrase.txt. Any recommendation to handle encrypted images from drawable folder using kotlin in Android studio? I would like to show the picture decrypted in an ImageView. Thanks in advance.