开发者

AIR application - unable to open encrypted database using coldfusion.air.SyncManager

I have an AIR application (written in Flex 4.1.0.16076) that copies data from an unencrypted database to an encrypted database and then tries to open the encrypted database using coldfusion.air.SyncManager's openSession method (Coldfusion-AIR integration library from version 9.0.1). Once the encrypted database is created, the application will be distributed only with the encrypted database. I use com.adobe.air.crypto.EncryptionKeyGenerator to generate encryption key. I use the same password, first to encrypt the database and then try to open it. The database is successfully generated but when I try to open it, I get the following error: SQLError: 'Error #3125: Unable to open the database file.', details:'An encryption key cannot be specified when the database is not encrypted.', operation:'open', detailID:'1011'

I'm passing the encryption key to openSession method.

W开发者_JS百科hat am I doing wrong? Please help!

Dilip


In my experience, with AIR, a DB must be created as an encrypted DB. An unencrypted DB cannot be later encrypted. Is that what you are trying to do?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜