Anonymous
|
Martin, this is an issue I've looked at. I do not recall exactly, but I got problems with it and failed to get it working. For one thing (I maybe wrong) you can determine if db is encrypted only for local dbs by using NSFDbIsLocallyEncrypted. Next I do not remember what I did trying to encrypt it. I do not think there is a regular exposed API for that. I think the only way to encrypt db from code is to use NSFDbCreateExtendedWithOptions when creating it. This is not much, right? Another thing -- when playing around with this I noticed that setting encryption level from UI did not really encrypt the db by itself; it just set some flag and subsequent compact(?) was necessary to encrypt/decrypt the db.
|