1. Beatrix Willius
  2. Valentina Database ADK
  3. Dienstag, Oktober 30 2018, 01:08 PM
  4.  Abonnieren via E-Mail
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
Kommentar
There are no comments made yet.
Pierce DuBrock Akzeptierte Antwort
Before I OPEN an encrypted database I use (example):


dbYourDatabase.UseEncryptionKey("yourencryptionkey",EVDataKind.kStructureAndRecords)
dbYourDatabase.Open(dbSetupFile)
Kommentar
There are no comments made yet.
Beatrix Willius Akzeptierte Antwort
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
Kommentar
There are no comments made yet.
Beatrix Willius Akzeptierte Antwort
The usual pebkac problem. Open database, get exception, open database again with password.
Kommentar
There are no comments made yet.
Ivan Smahin Akzeptierte Antwort
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).
Kommentar
There are no comments made yet.
  • Seite :
  • 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