Languages

Menu
Sites
Language
Creating a secure database using a secret key

hi,
i want to create a database and secure it with a key ,for this i found the following api 
Construct (const Tizen::Base::String &dbPath, const char *pOpenMode, const Tizen::Base::ByteBuffer&secretKey);
i created a database in my app using the following key
buf={'a','b','c'};
and inserted a row into it
next i tried to select the same row from another function .there i called db.construct() with another key 
it is responding even for the wrong key.

i want to confirm whether the above approach will encrypt the database using a key or else i should look after database encryption by my wriiting my own code
please guide me  

Edited by: Brock Boland on 17 Mar, 2014 Reason: Paragraph tags added automatically from tizen_format_fix module.

Responses

1 Replies
Alex Ashirov

Hi,

Why do you use another key from another function? As far as I understand If a secure database file is created with a specific key then other applications and functions can access the same secure database file with the identical key value.