[V4Rb] encryption

Ruslan Zasukhin sunshine at public.kherson.ua
Fri Jul 11 23:02:24 CDT 2003


on 7/11/03 21:39, Charles Yeomans at yeomans at desuetude.com wrote:

>>> I was reading the docs about BaseObject encryption, and it says that
>>> the SetEncryption method must be called right after VDatabase.Create
>>> or
>>> VDatabase.Open.  It seems to me that a logical place to call
>>> SetEncryption would be in the VBaseObject constructor.  Can I do this?
>> 
>> Hi Charles,
>> 
>> IF you already have encrypted db then yes.
>> Important is that you say Valentina a key BEFORE you start work with
>> this
>> BaseObject's data.
>> 
>> But how you going encrypt BaseObject first time if you will have
>> Setencryption in the constructor?
> 
> 
> Well, I don't know; that's why I'm asking.  If I call SetEncryption in
> the VBaseObject constructor, then it certainly seems to me that this
> would occur before I begin to work with that VBaseObject's data.

YES, Charles.

Here no problems.

I just ask you and worry, HOW you going to encrypt db first time?

To do this you need call ChangeEncryption() function for BaseObject
instance. And this instance should be created without SetEncryption() call
because BaseObject is not encrypted on this moment,

You see problem ?

-- 
Best regards,
Ruslan Zasukhin      [ I feel the need...the need for speed ]
-------------------------------------------------------------
e-mail: ruslan at paradigmasoft.com
web: http://www.paradigmasoft.com

To subscribe to the Valentina mail list go to:
http://lists.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------



More information about the Valentina mailing list