Wrox Home  
Search P2P Archive for: Go

  Return to Index  

security_java thread: PBE Example Explanation...


Message #1 by "Nicolas Dinh" <dubstar27@h...> on Wed, 24 Apr 2002 04:39:10
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

  Return to Index