Hi Norbert
 
Since ECB mode is working
then the problem is in setting the same IV initial value in both sides for CBC mode or any other mode that require IV .
 
don't forget to initialize your cipher in java before encryption and decryption with the "Initial value"
 
byte[] ivBytes = new byte[]{..,..,..};
 
IvParameterSpec ivSpec = new IvParameterSpec(ivBytes );
 
Cipher c = Cipher.getInstance("...","..."/*provider name, u may use Bouncy castle*/);
 
//in encrption function
cipher.init(Cipher.ENCRYPT_MODE, key, ivSpec);
 
//in decryption function
cipher.init(Cipher.DECRYPT_MODE, key, ivSpec);
 
and The example Jeffery sent for Crypto++ code is very helpful
 
u may send your c and java code
 
 
Regards
Haytham Mohammed


Everyone is raving about the all-new Yahoo! Mail beta.

Reply via email to