Hello people,
I know java for long time now. I had created a encrypt program that encrypt and decrypt TEXT files with my own (not using java's library) algorithm.

Now what i need is to encrypt pictures, pdf, rich texts/MS Word files.

How can i encrypt these files? As I knew all the files in the computer is present in binary form (0 and 1).

And if i encrypt the picture file the output will be a file with 0 and 1 and after re decryption the picture again?