Code:
public class ByteDumper {
import javax.crypto.SecretKeyFactory;
public static void main(String[] args) {
try {
SecretKeyFactory skf = SecretKeyFactory.getInstance("AES");
System.out.println(skf.toString());
} catch (Exception e) {
e.printStackTrace();
}
}
}
This is the output it produces on my Mac OS X 10.7.1 system with the latest Java 6:
Code:
java.security.NoSuchAlgorithmException: AES SecretKeyFactory not available
at javax.crypto.SecretKeyFactory.<init>(DashoA13*..)
at javax.crypto.SecretKeyFactory.getInstance(DashoA13*..)
at com.puttysoftware.bytedumper.ByteDumper.main(ByteDumper.java:6)
Huh. Strange. Why doesn't that work?
Last edited: