Creating a secure database using a secret key

Creating a secure database using a secret key

BY 30 Oct 2013 Native Application Development

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  

Written by