code for file encryption Java app