Statement: The material used in this column is written by the VIP students of the Kay Academy, who has the right to be anonymous and has the final right to interpret the article; The Edith Academy is designed to promote students to learn from each other on the basis of public notes.
MD5:
Introduction: File generated a MD5 key, that is, to produce a MD5 key, MD5 is a cipher, but this encryption can be added is not solvable, can encrypt the past, but the solution is not back, the encryption length of 32 bits, the advantage of encryption is that, as long as the same text, it is the same encryption of the MD5 is the same, Just calculate a number of the difference byte, the calculated MD5 is not the same
The following peripheral information is only stored on your disk and is not stored in your file
File perimeter information:
1. Time
2. Permissions
3. Show hidden
4. The author ...
The contents of the file are divided into two parts:
The head is the description of this file, the content is the specific data of this file
1. Head points
2. Content
File optimization of the network disk:
Make each file MD5 and then others upload the time to compare the library there is no this file, if there is a second pass, calculate MD5 out you can save your space, you do not have to store so many duplicate files
MD5 generally are directly which others to use, rarely write their own, such as:
Write a test class, and then you can generate the MD5 key.
16-bit stream (character):
Description: Output and input is the char type, how to identify a 16-bit stream, just look at the back is not reader and writer on the line
Reader (Read)
FileReader
BufferedReader
InputStreamReader
CharArrayReader
Writer (write)
FileWriter
BufferedWriter
OutputStreamWriter
Chararraywriter
PrintWriter
If FileWriter can also be added, \ r is a eight-bit newline, \ n is a 16-bit line break
Plus BufferedWriter is also possible, is to create a buffer
You can add a bufferedreader to read, ReadLine read one line at a time, and return empty if not.
Here you go, inputstream. 16-bit
Convert eight-bit to 16-bit stream, then output
JAVASE--MD5, 16-bit stream