Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checking the schema spoils the answer #2

Closed
maugier opened this issue Oct 10, 2019 · 1 comment
Closed

Checking the schema spoils the answer #2

maugier opened this issue Oct 10, 2019 · 1 comment

Comments

@maugier
Copy link

maugier commented Oct 10, 2019

Issuing .schema from the sqlite prompt immediately spoils the answer by showing the trigger logic.

SQLite does not seem to have a portable hash function, but the answer could at least be obfuscated against accidental viewing using hex(); i.e. change the trigger condition to

CASE WHEN hex(new.value) = '4A657....
@JoeGermuska
Copy link
Member

I just noticed that yesterday, and went down the hash rabbit hole. I hadn't found a built-in alternative, but the hex function is a good idea. thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants