SetStructureEncryption ...

Jochen Peters j.peters at valentina-db.de
Wed May 12 08:07:35 CDT 2004


Hi Ruslan!

>> The SetStructureEncryption does not generate a ValentinaError() when
>> wrong key
>> is sent.
>>
>> This is straight from the Examples ...
>> Notice I set encryption key to "abrakadabra2".
>> Database made with "abrakadabra"
>>
>> ------ Code Snippet from example shipping with 1.10
>> on OpenDB
>> global gDB
>>
>> set gDB = new(xtra"VDataBase")
>>
>> -- BEFORE we open database we need tell to database object the
>> encryption key.
>> SetStructureEncryption( gDB, "abrakadabra2" )
>> openDatabase(gDB, the moviePath & "test.vdb", 4)
>>
>> end CreateDB
>> ---- End Code Snippet.
>>
>>
>> Go to examples, Structure Encryption. Change password on openDB.
>>
>> Should ValentinaError() generate a 326 ... Wrong Encryption Key ??
>> But ValentinaError() returns  ... no error reported.
>
> Jochen,
>
> I wonder, in Valentina Studio this works for you?
Yes - this works without problems.
In C++ i get an exception in this case. Maybe your ValentinaError method
does not handle this?

-- 
Best regards,
Jochen Peters
PIIT GmbH

------------------------
http://www.valentina-db.de


More information about the Valentina mailing list