Java JDBC/SQLite: Any inbuilt function to hash strings
I am using Java to read & write to an SQLite3 database. I am using the SQLiteJDBC Java driver to interact with the database.
Are there any hash functions built into the SQLiteJDBC Java JDBC driver that I can use to prevent against SQL Injection attacks?
I come from using python & its inbuilt SQLite3 module/library. That library has its own SQLite hash function, so does SQLiteJDBC Java JDBC driver have its own in built hash function.
If not, does anyone have any ideas what I could u开发者_如何学编程se to hash the data that I store on the database so I can avoid injection attacks?
Looks like there isn't. SQLite3 doesn't have it built in.
You might be able to find what you're looking for here: SHA1 hashing in SQLite: how?
精彩评论