1. Beatrix Willius
  2. Valentina Database ADK
  3. Tuesday, October 30 2018, 01:08 PM
  4.  Subscribe via 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
Comment
There are no comments made yet.
Pierce DuBrock Accepted Answer
Before I OPEN an encrypted database I use (example):


dbYourDatabase.UseEncryptionKey("yourencryptionkey",EVDataKind.kStructureAndRecords)
dbYourDatabase.Open(dbSetupFile)
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Database ADK
  3. # 1
Beatrix Willius Accepted Answer
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
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Database ADK
  3. # 2
Beatrix Willius Accepted Answer
The usual pebkac problem. Open database, get exception, open database again with password.
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Database ADK
  3. # 3
Ivan Smahin Accepted Answer
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).
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Database ADK
  3. # 4
  • Page :
  • 1


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

Categories

Announcements & News
  1. 0 subcategories
Valentina Studio
  1. 2 subcategories
Valentina Server
  1. 4 subcategories
Valentina Database ADK
  1. 0 subcategories
Valentina Reports ADK
  1. 0 subcategories
Other Discussions
  1. 2 subcategories
BETA Testing
  1. 0 subcategories
Education & Research
  1. 0 subcategories