Joke Collection Website - Public benefit messages - How does java realize the verification code of Baidu Post Bar?

How does java realize the verification code of Baidu Post Bar?

1, first define an array of characters, such as pure numbers or numbers &; believe

2. Randomly generate several strings

3. Turn this line into a picture.

4. Change the color at will and distort the picture.

5. The server transmits it to the client, and the client fills in the verification code and transmits it to the server for verification.