1. Beatrix Willius
  2. Valentina Database ADK
  3. Вторник, Октябрь 30 2018, 01:08 PM
  4.  Подписаться через email
How do I use RequiresEncryptionKey? I have successfully encrypted a database with


theDatabase.Encrypt(Password, EVDataKind.kRecordsOnly)


When I try to open the database I always get false for RequiresEncryptionKey .

To be sure I tried with the example "Database_OpenEncrypted" where I added


if mDatabase.RequiresEncryptionKey then
beep
end if


before opening. Almost latest version of Valentina (12.10.). Am I doing something wrong or is this a bug?

Mit freundlichen Grüßen/Regards

Beatrix Willius

http://www.mothsoftware.com
Mail Archiver X: The email archiving solution for professionals
Комментарий
There are no comments made yet.
Pierce DuBrock Ответ принят
Before I OPEN an encrypted database I use (example):


dbYourDatabase.UseEncryptionKey("yourencryptionkey",EVDataKind.kStructureAndRecords)
dbYourDatabase.Open(dbSetupFile)
Комментарий
There are no comments made yet.
Beatrix Willius Ответ принят
Hi Pierce,

this is not the problem. How do you know that you need to get the password from keychain or with a password dialog? For this I need RequiresEncryptionKey.

Regards

Beatrix Willius
Комментарий
There are no comments made yet.
Beatrix Willius Ответ принят
The usual pebkac problem. Open database, get exception, open database again with password.
Комментарий
There are no comments made yet.
Ivan Smahin Ответ принят
Hi Beatrix,

Yes, RequiresEncryptionKey for database is not much helpful. You have to open db first, and then, call this method.
This method is for getting answer - is the encryptable object requires dedicated encryption key or not. For example - you may have not-encrypted database but encrypted table(s) or/and field(s).
Комментарий
There are no comments made yet.
  • Страница :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.