security_java thread: PBE Example Explanation...
Hi, I have a question about the password-based encryption code example in Chapter 4. In the decrypt() function, they divide the string into 2 substrings...the salt component and the ciphertext component. Why did they choose the index from 0-12 for the salt component and 12-end for the ciphertext? Why did they choose 12? String salt = text.substring( 0, 12 ); String ciphertext = text.substring( 12, text.length() ); Thanks, Nicolas Dinh
|





