See this post: How to write read binary data. Depending upon how your encryption works, you may wish to use a DataOuptutStream or something like a BufferedWriter. Given the System prints what you...