RSA问题
我使用的JDK是1.4.2,代码如下:
Cipher cipher = Cipher.getInstance("RSA");
cipher.init(Cipher.WRAP_MODE, publicKey);
byte[] wrappedKey = cipher.wrap(key);
为什么引发java.security.NoSuchAlgorithmException: Cannot find any provider supporting RSA
at javax.crypto.Cipher.getInstance(DashoA6275)
at RSATest.main(RSATest.java:62)异常?
难道不支持RSA?