Have a look in the VB6 code bank for useful examples on how to encrypt/decrypt data. You might also want to look at the Database development FAQ for some examples of saving and retrieving data from a database.