1

I'm working on a project and I want to protect information which is in SQLite database. I want to use algorithms such as RC4, DES, AES. I use C#. Please help me!

5
  • In order to be helpful, it helps us to have way more context than that. Can you tell us a little about what you're trying to store in SQLite? Commented Feb 1, 2012 at 6:48
  • 2
    Just encrypt the data and store it in a blob column. If SQLite doesn't support blobs, encode the encrypted data with base64 and store it in a text field. If you're encrypting the whole thing, you should see this: stackoverflow.com/questions/1259561/… Commented Feb 1, 2012 at 6:52
  • What @Polynomial said is about it. Note that storing passwords in a database is a completely different problem and requires cryptographic hashing algorithms. You should clarify your question a bit, because security can be rather complex to implement properly, if you have no experience. Commented Feb 1, 2012 at 12:06
  • @Groo - Security is complex to implement properly, full stop. Commented Feb 1, 2012 at 21:05
  • using additional library Commented Feb 2, 2014 at 16:33

1 Answer 1

1

As discussed here, the easiest way is to use the System.Data.Sqlite wrapper and include a password in the connection string. This old forum thread says that the wrapper uses RC4 via the Microsoft Crypto API.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.