I'd like to ask a simple question.
Is the OpenSSL included in Android? If so, is there anyone who can say how to call openssl function such as AES encryption?
Thank you in advance.
I'd like to ask a simple question.
Is the OpenSSL included in Android? If so, is there anyone who can say how to call openssl function such as AES encryption?
Thank you in advance.
Here are some of the Helpful Links : How to use Open SSL in Android. For AES encryption take a look at javax.crypto package which android supports. javax.crypto supports AES algorithm as well. Here is the link for that javax.crypto in Android. Make sure you do some research before asking question. At least try to present what you have tried and be specific about your problem.
The answer to your question "Is the OpenSSL included in Android?" is "No". OpenSSL is apparently not included by default in Android.
You can find that by using below code:
StringBuilder builder = new StringBuilder();
for (Provider provider : Security.getProviders()) {
builder.append("provider: ")
.append(provider.getName())
.append(" ")
.append(provider.getVersion())
.append("(")
.append(provider.getInfo())
.append(")\n");
}
String providers = builder.toString();
//now display the string on the screen or in the logs for debugging.
which will give you result like:
provider: GmsCore_OpenSSL1.0 (Android's OpenSSL-backed security provider)
provider: AndroidOpenSSL1.0 (Android's OpenSSL-backed security provider)
provider: DRLCertFactory1.0 (ASN.1, DER, PkiPath, PKCS7)
provider: BC1.49 (BouncyCastle Security Provider v1.49)
provider: Crypto1.0 (HARMONY (SHA1 digest; SecureRandom; SHA1withDSA signature))
provider: HarmonyJSSE1.0 (Harmony JSSE Provider)
provider: AndroidKeyStore1.0 (Android AndroidKeyStore security provider)
Also if want to implement you can compile your own openssl libarary(latest) and you have to write your own ndk code(in c/c++) with static import of this compiled openssl library .