I have this method here in a class named Buffers:
private static BufferedImage load(String s){
BufferedImage image;
try{
image = ImageIO.read(Buffers.class.getResourceAsStream(s));
return image;
}catch(Exception e){
e.printStackTrace();
}
return null;
}
That all the graphic contents in the project uses to load up the images. Example:
public static BufferedImage background = load("/path/");
I want to know if there is a way to only load encrypted images and then be decrypted only when called by this method.
If there is any doubt about what I'm trying to ask, please let me know.
Thank you!