1. Beatrix Willius
  2. Valentina Database ADK
  3. 火, 10月 30 2018, 01:08 PM
  4.  メールで購読
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.

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. 0 subcategories
BETA Testing
  1. 0 subcategories
Education & Research
  1. 0 subcategories
Omegabundle
  1. 0 subcategories