Flutter REST API Security

Viewed 147

I'm using REST API key in my flutter project in lib folder so is there any chance for someone to decompile the apk and see my API key? Is it secured?

1 Answers

Can a user decompile the apk and get rest api key and write into my database by postman or sth like that?

If you don't share your APK which is generated in debug mode, it won't be easy to access your API key. You should always consider building your APK in release mode. And you can obfuscate your APK too.

Related