I have started developing with android using java a while ago and I have made a handful of fully functioning apps but this is the first time I find myself in need of using NDK and C++.
In the documentation, they mention that I can make things more secure by adding my own encryption algorithm, which I would like to do but I never touched C++ nor am I an expert at encryption so I figured if I can fit in the OpenSSL library for CPP, it comes with lots of pre-built cryptography functions I can use that.
Which is prebuilt code for the library for android.
My first issue is why does CPP need to be built this way? I am used to Java where I can click run and do not understand why you have to dig in and compile the code yourself with flags and all that. Also, pertaining to the library I have found, I do not exactly know what to do with this code...I already have a CMake file and some libraries in my android project because of the plugin installation.
-Do I just grab the pre-built files and drop them into my CPP resource directory?
-What changes do I have to make to my CMake file to tell the system those files are there?
-I am saving my encrypted key into the environment variables, and the decryption function will make it readable, if the decryption function requires a decryption key, what would be the best way to hide this decryption key?
Thank you all kindly for your time :)