V4MD Encryption ... next chapter
Ruslan Zasukhin
sunshine at public.kherson.ua
Thu Dec 2 10:11:36 CST 2004
On 12/1/04 6:19 PM, "Florian Bogeschdorfer" <fb at memedia.de> wrote:
> Hi Igor!
>
> I have started working on the encryption of the database again and I found
> out that no matter what encryption key I use for opening, the database is
> always opened.
>
> Say I encrypted it with "mykey" then you are able to open it with "notmykey"
> Bug?
>
> See code:
>
> SetStructureEncryption (VAL[#ID],"sotchi")
> if ValentinaError()<>0 then
> VALerror=ValentinaErrorString()
> alert "Entschlüsselung fehlgeschlagen"&&VALerror.string
> return -1
> end if
> SetEncryption (VAL[#ID],"notmycode")
> if ValentinaError()<>0 then
> VALerror=ValentinaErrorString()
> alert "Entschlüsselung fehlgeschlagen"&&VALerror.string
> return -1
> end if
>
>
> Message window:
>
> * V4MD *: InitValentina...done
> * V4MD *: ValentinaSetDebugMode...done
> * V4MD *: new VServer...done
> * V4MD *: OpenSession...done
> * V4MD *: GetDatabaseCount...done
> * V4MD *: CloseSession...done
> * V4MD *: VServer_Destroy...done
> * V4MD *: Create_VDataBase...* V4MD *: DB_New...done
> * V4MD *: DB_SetStructureEncryption...done
> * V4MD *: ValentinaError...done
> * V4MD *: DB_SetEncryption...done
> * V4MD *: ValentinaError...done
> * V4MD *: OpenDatabase...done
>
> I understood that you MUST set the correct encryption key to open an
> encrypted database?
Yes, if key is wrong it should return error.
--
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