Amelia@Amazon avatar image
Amelia@Amazon posted

How to use the MD5 Cipher in Android 5.0 with libc changes   


After upgrading to Android 5.0, applications relying on the MD5 cipher on invocation.


In lollipop, MD5 related functions have been removed from libc. The app needs to verify it's references to MD5 related functions from it's code.

As of Android 5.0, as a developer you must include sources for MD5 related functions directly in your library, or link static library which has those functions. This would be as a result of changes to libc for Android 5.0.

For more information about libraries in API Level 19 and 21:

LIBC Functions in Android API Level 21:

LIBC Functions in Android API Level 19:

Keywords: Security, libc, MD5, SHA1


10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.



rossbria contributed to this article brizzlebrazzle contributed to this article