Start a new topic

Encryption and Decryption of existing database

Hello,

I have read about encryption of an existing database by packing the database.

I currently have a db with no encryption that I would like to change to use a key. When I try to pack it using a key I get this error


Invalid encryption key. Unable to decode database with given encryption key: C:\Users\Public\Documents\ScholarChip\VisitorManager\dev\Database\sccvisitor.vdb5

Error 103 (Provider v. 5.2.1.1562): Cannot activate data storage header: C:\Users\Public\Documents\ScholarChip\VisitorManager\dev\Database\sccvisitor.vdb5

Error 101 (Provider v. 5.2.1.1562): Cannot open data storage or file: C:\Users\Public\Documents\ScholarChip\VisitorManager\dev\Database\sccvisitor.vdb5

Error 117 (Provider v. 5.2.1.1562): Cannot open database: C:\Users\Public\Documents\ScholarChip\VisitorManager\dev\Database\sccvisitor.vdb5

Error 336 (Provider v. 5.2.1.1562): Cannot pack database: C:\Users\Public\Documents\ScholarChip\VisitorManager\dev\Database\sccvisitor.vdb5


I am trying to this programmatically. Can you please let me know if there is anything I need to do before packing it with a key?

Thanks.


I am using VistaDB 5.2.1

Never mind I was using the wrong PackDatabase method. 

Thanks.

Login to post a comment