【发布时间】:2014-12-27 23:35:08
【问题描述】:
我目前正在研究此处的 AES 加密 256 位函数:
http://deveshsharma.info/2012/10/09/256-bit-aes-password-based-encryption-in-java
我现在要做的是查看上面代码的输出。但是我导入后 NetBean 无法读取encodeAsString。
import com.sun.org.apache.xerces.internal.impl.dv.util.Base64;
...
byte[] encryptedTextBytes = cipher.doFinal(plainText.getBytes("UTF-8"));
return new Base64().encodeAsString(encryptedTextBytes);
当我用 (alt+enter on encodeAsString) 检查时,错误是
"找不到符号.. Base64 是内部专有 API,可能是 在未来的版本中删除”
【问题讨论】: