I'm trying to build a password file that will be created by one program and read by a different one using CipherInput/OutputStreams. I believe that I need a repeatable key so that as I write the file, I can also read it.
I'm trying to use cipher.init (Cipher.ENCRYPT_MODE, key, ivSpec) with ivSpec set to the same array of bytes in both my read and write routines. When I try to compile the write class, I get an error at my import statement for the IVParameterSpec.
Line 78: import javax.crypto.spec.IVParameterSpec;
Error:
[javac] C:\rat\jtim\src\com\baesystems\jtim\RemotePassword.java:78: cannot resolve symbol
[javac] symbol : class IVParameterSpec
[javac] location: package spec
[javac] import javax.crypto.spec.IVParameterSpec;
Do I need to load something else into the JDK to get IVParameterSpec? What could I be doing wrong?