I use an encryption key for a local sqlite database. I want to put the string in a constant, don’t worry about encoding or hashing it up to disguise against hex editing for the time being.
If i create a string constant ‘encryptkey’ and store the password in it the database will not open;
devpass=encryptkey
opendatabase \\\\method to open the database and get data
However the below works fine.
devpass="The Password"
opendatabase \\\\method to open the database and get data
Checking the ‘hex’ of the encryptkey variable shows the contents as they should be with no extra characters.
Encryptkey is public, is being found but does not match the database password unlike the latter method.
If that is the case, your code should fail. App.encryptkey is not the same as encryptkey. If your code compiles, then it is not accessing the constant under App. It’s using something else.