In looking through all the posts about encrypting/protecting apk from being co-opted, I have figured out the following (all within B4A modules/libraries):
1. Compile code using obfuscation.
2. Use the Google Licensing Library with SetVariableAndValue
3. Use SQLCipher with SQLite database, or use RandomAccessFile encryption methods.
All sound like they at least will slow down the attempts at breaking apart our programs that we want to keep private..
However, what is the best way to store the password that is used for the SQLCipher or RandomAccessFile?
My thought is that with decompilation, it would be relatively easy to find the password if stored as a straight string. If it were stored in a file that had been encrypted... then the password for "that" file has to be stored somewhere...... Are there methods for storing the password in code, such that it is difficult to find/reconstruct?
Ross
1. Compile code using obfuscation.
2. Use the Google Licensing Library with SetVariableAndValue
3. Use SQLCipher with SQLite database, or use RandomAccessFile encryption methods.
All sound like they at least will slow down the attempts at breaking apart our programs that we want to keep private..
However, what is the best way to store the password that is used for the SQLCipher or RandomAccessFile?
My thought is that with decompilation, it would be relatively easy to find the password if stored as a straight string. If it were stored in a file that had been encrypted... then the password for "that" file has to be stored somewhere...... Are there methods for storing the password in code, such that it is difficult to find/reconstruct?
Ross