안드로이드 개발 질문/답변
(글 수 45,052)
안드로이드에서 암호화 관련은 지원이 안되는것인지요?
- DH
- DES
- TripleDES
- PBE
- RC2
- RC5
위에 모든 리스트를 해봤지만 안되더군요.
제가 몰라서 그런건지 모두 구현이 안된것같은데...
W/System.err(24664): java.security.NoSuchAlgorithmException: SecretKeyFactory AES implementation not found
W/System.err(24664): at org.apache.harmony.security.fortress.Engine.getInstance(Engine.java:105)
W/System.err(24664): at javax.crypto.SecretKeyFactory.getInstance(SecretKeyFactory.java:111)
try{
SecretKeyFactory secretKeyFactory = SecretKeyFactory.getInstance("DESede");
Log.d(Constants.logTag,"DESede");
secretKeyFactory = SecretKeyFactory.getInstance("AES");
Log.d(Constants.logTag,"AES");
secretKeyFactory = SecretKeyFactory.getInstance("DES");
Log.d(Constants.logTag,"DES");
secretKeyFactory = SecretKeyFactory.getInstance("3DES");
Log.d(Constants.logTag,"3DES");
secretKeyFactory = SecretKeyFactory.getInstance("TripleDES");
Log.d(Constants.logTag,"TripleDES");
}catch(Exception e){
e.printStackTrace();
}
package
javax.crypto.spec
This package provides the classes and interfaces needed to specify keys and parameter for encryption. The following standards are supported:
- PKCS#3 Diffie-Hellman Key Agreement standard;
- FIPS-46-2 Data Encryption Standard (DES);
- PKCS#5 Password-Based Cryptography standard.
Keys may be specified via algorithm or in a more abstract and general way with ASN.1.
Keys and algorithm parameters are specified for the following procedures:
- DH
- DES
- TripleDES
- PBE
- RC2
- RC5




AESCrypto