You could read the file byte by byte and increase every value for an arbitrary number. It's not good encription, but it works
This code was written on the fly, to get you the idea ...
SCJP 6, OCMJD 6, OCPJWSD 6
I no good English.
Joined: May 30, 2006
dear Martin Vanyavchich thankx for your support.
In my project actually i need more security for some files so it should made into .tar files and encrypt and then ftl to my local machine from server.
Then encrypt that file and gate the actual tar.
Cau please help me giving any link or any free library for this purpose.
Again thanks for your response ans idea.
The writing code will be similar:
You can replace the outer stream (GZIPInputStream / GZIPOutputStream) with ZipInputStream / ZipOutputStream for regular zipping / unzipping, and with TarInputStream / TarOutputStream for using TAR to pack / unpack. For tar.gz or tgz files you can make the chain even one longer: