Search code examples
javascriptmysqldatabaseobfuscationknex.js

Knexjs obfuscate database and tables name


I was looking for a javascript library to manage mysql databases and found Knexjs well suited for my needs, but i don't want to make database and tables readable from js source files.

On the other side I can't just obfuscate js since names would be unreadable for the application too.

Any idea out there?

Thanks.


Solution

  • Put the table names in strings loaded from environment variables.