Skip to main content
Participant
Jan 13, 2014 12:45 PM UTC
Question

Adobe Flash Builder - using EncryptionKeyGenerator

Hi there!

I'm desperately trying to create a simple app that would generate Encryption key using standard adobe.air.crypto package for my SQLite database file.

Purpose is to enter text password and as a result - get encryption key.

Here I found complete guide for it:

http://help.adobe.com/en_US/AIR/1.5/devappsflex/WSAD329515-CBF1-4658-8DD7-CAC9C354CE94.html

I created New Flex project in Flex Builder and posted in new MXML application the code from link above.

However while building app I experience difficulties:

DescriptionResourcePathLocationType
1046: Type was not found or was not a compile-time constant: EncryptionKeyGenerator.Main.mxml/B2B test/srcline 31Flex Problem
1120: Access of undefined property EncryptionKeyGenerator.Main.mxml/B2B test/srcline 78Flex Problem
1180: Call to a possibly undefined method EncryptionKeyGenerator.Main.mxml/B2B test/srcline 31Flex Problem

Can somebody help me?

Should I manually connect as3lib to my app? How?

I am a newbie to Flash Builder.

Maybe someone could compile this example app so that I could use the result?

Thank you in advance!

This topic is closed to new replies. Start a new post to keep the conversation going.

1 reply

Participating Frequently
Feb 5, 2014 11:49 PM UTC

The crypto libraries work ok on the desktop but don't work in Android because some classes like MD5 for example don't run on the mobile version. I had the same problem running a SWF a webview. It used the MD5 and SHA1 classes that don't work in Flash Lite or even Flash Player 11 for Android.

You could try posting what you need to encrypt to a server and use the response. I suggest you use a PHP-specific encryption library. If you really really want to use the crypto library. You could publish a SWF file that does the encoding then saves the output to a web server file then have your app read that file but it's slow.

Translate