Skip to Main Content

Java Security

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

What's the function of IvParameterSpec

843811Jun 16 2005 — edited Oct 26 2007
SecretKey deskey = new SecretKeySpec(key, "DES");
        Cipher c1 = Cipher.getInstance (Algorithm);
        IvParameterSpec ivSpec = new IvParameterSpec (bytes); 
        c1.init (Cipher.ENCRYPT_MODE, deskey, ivSpec);
        byte[] cipherByte=c1.doFinal(plan_text.getBytes())
What does IvParameterSpec do?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 23 2007
Added on Jun 16 2005
15 comments
4,857 views