One of the DB fields is a password, which I am have stored in plain text. Now I want to convert it from plain text, by encrypting it and storing it as a BLOB in the DB. So, of course my insert function no longer works, since a BLOB is not a String. I looked it up, and Dictionary vals can only be Strings or Ints.
How would you handle this? Is there a collection that can store different datatypes? Or should I use a struct?
EDIT: I just found an example inthis tutorial by Andrewsw where he used an instance of a class as a Dictionary val, so I was incorrect in thinking that they only used Strings and Ints.
Maybe the real problem is that the password field is the only one that is not a string, or converted to a string. If I convert a BLOB to a string, doesn't that defeat the purpose of encrypting it? Can I have a collection with 5 strings and 1 BLOB?
This post has been edited by synlight: 10 October 2013 - 09:03 AM