You can set passwords on windows files so how can you create a program to open those files? I have the password and the reason is so that I can have files that my program can access but other people can't.
I looked for what you said. Found nothing. Trying to use SDL to load images, which I am doing, yet I want to passwords the .jpgs and still load them through SDL.
well encrypting images is a little bit different than encrypting txt files. i think what you would have to do is open it in like fstream, flip the bytes ie http://www.cplusplus.com/articles/Ly86b7Xj/ (i dont know if that would actually work though) save it back to your own file format, when you need it again load the picture in sdl by unencrypting it