cancel
Showing results for 
Search instead for 
Did you mean: 

SUPKeyVault - Encryption of Local Database.

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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

ratish_rao
Explorer
0 Kudos

.

Edited by: Ratish Rao on Dec 26, 2011 5:22 AM

Former Member
0 Kudos

Were you able to solve your problem? I am having the same issue.