1

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 use to hash the data that I store on the database so I can avoid injection attacks?

Mack
  • 11
  • 2
  • 2
    hash to prevent injection attacks??? You use prepared statements to prevent injection attacks. Hash functions are used to avoid storing passwords in the clear. Perhaps you have the two confused? – Jason S Feb 15 '11 at 02:17

1 Answers1

0

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?

Community
  • 1
  • 1
Benoir
  • 1,244
  • 10
  • 10