【发布时间】:2012-01-27 14:40:51
【问题描述】:
cipher = Cipher.getInstance("Blowfish");
这会引发异常 java.security.NoSuchAlgorithmException: Cipher Blowfish implementation not found。
我检查了 local_policy.jar 和 US_export_policy.jar 都存在,并且从安装 java 的那一刻起它们就没有改变。什么会导致这个问题?
编辑:
Object[] o = Security.getAlgorithms("Cipher").toArray();
for (int i=0; i<o.length; i++) {
System.out.println((String)o[i]);
}
当我运行此代码时,我得到的列表没有“Blowfish”,但在 DES 或 RSA 等算法名称中,有一些未知名称,例如“1.2.840.113549.1.1.7”等。为什么那里没有河豚,或者它隐藏在这些数字中?
【问题讨论】: