The only way to Secure API Keys in Android!

Поділитися
Вставка
  • Опубліковано 16 січ 2025

КОМЕНТАРІ • 9

  • @davidrauca
    @davidrauca Місяць тому +1

    This solution does not add any security at all. The config field you declare in the gradle file will end up in a constant string in the final apk. It takes seconds to decompile the APK and do a search by the text "API" and you get the key. Obfuscation does not help as well. The string values can not be obfuscated.
    I'm also looking for real solution for this problem but unfortunately haven't found one.

  • @owenthompson8397
    @owenthompson8397 6 місяців тому +3

    I prefer to use the NDK to store and retrieve API Keys. It better to not use "The only way" in your UA-cam title.

  • @wilkq1110
    @wilkq1110 6 місяців тому +1

    Actually I was looking for it and I got film "30 sec ago ", Thank you in advance

  • @meetb26
    @meetb26 6 місяців тому +4

    local properties not secure. this approach has 5% secure.

  • @omarredani5580
    @omarredani5580 6 місяців тому +2

    Thank you Younes, for my side I store the API in Firestore and use App Check to restrict calls to within the app. When retrieving the value from Firebase, it is automatically decrypted and then encrypted using Keystore, but I'm still getting some issue with the App Check could you please make a video about it, and how we implement it properly.

  • @dmrichprince
    @dmrichprince 4 місяці тому

    By your solution a hacker just need 5 minutes to find the key in apk.