I am currently working on an AES encryption 256 bit function found here:
http://deveshsharma.info/2012/10/09/256-bit-aes-password-based-encryption-in-java
What I am trying to do now is to see the output of the code above. But NetBean can't read encodeAsString
after I import it.
import com.sun.org.apache.xerces.internal.impl.dv.util.Base64;
...
byte[] encryptedTextBytes = cipher.doFinal(plainText.getBytes("UTF-8"));
return new Base64().encodeAsString(encryptedTextBytes);
When I check with (alt+enter on encodeAsString), the error is
"cannot find symbol .. Base64 is internal proprietary API and may be removed in a future release"