on 12-23-2011 6:05 AM
Hi,
Has anyone tried to encrypt the local database using the SUP APIs ?
The documentation says we need to unlock the KeyVault when an application is launched for the first time and
set the encryption key to the SUPConnectionProfile of the database.
When we do a SUPKeyVault * keyVault = [SUPKeyVault getSUPKeyVault:@"1000"]; , the keyVault is unlocked no matter what parameter we pass it to the getSUPKeyVault method. The documentation also says to get the key from the keyVault and set it to the connection profile by using [cp setEncryptionKey:dbKey], where dbKey is the key obtained from the keyVault. Can anyone throw light on this as there is no much clarity in the documentation.
Just to add few more info,
When I set the encryption key using cp = [SUPDB getConnectionProfile] and then
[cp setEncryptionKey:@"test"];
and try to start the Message Client, I get this error in the console.
"There is an exception file is encrypted or is not a database
SUPTest MBODebugLogger: SUPPersistenceException SUPPersistenceException from find: -- sup_sqlite_db_StatementWrapperImpl: There is an exception null value for sqlite3_stmt
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.