Help guys I am a bit stuck on this :( I am doing Simplified DES(SDES) in Java. How can I convert the files into binary representations before encryption? Any help is much appreciated.
I am thinking of reading the text file via FileInputStream, DataInputStream and BufferedReader and put them into a string(but the text file is really long). Then probably use getBytes() to present the bytes in binary form. Sorry I am weak in Java programming and please feel free to give advise. Will be great if someone can come up with a sample source code