I am in the process of developing Python Kivy Application for Android device. In my application i am using RapidAPI key and host details to connect to API and fetch data which i am further using in my code.
Could you please let me know how i can protect my secret key when i package the application so that it does not get exposed.
Also i would like to know how i can get this secret key dependency removed from my code to make sure whenever i update or regenerate a new key that should not impact the already existing version of application that is published.
headers = {
'x-rapidapi-host': "xxxrapidapi.com",
'x-rapidapi-key': "xxx"
}
Kindly help me suggest if there are any good approaches or best practices that i could.