How to resolve bug RC4 encrypt-decrypt on iPAD with AIR15 only

Hi everybody,
I have some trouble with AIR15 only, In the past, I created a small game on iPad It could send or receive messge from server. I used lib as3crypto.swc encrypt or decrypt message (RC4). But when I upgrade to AIR15 encrypt-decrypt cannot work ( Another thing about this crash is that it only happens with a release (adhoc or appstore) build but NOT with a debug build). I check so many time but i don't know what is problem here.
Please help me, thanks so much any advice.
P/S: My game have many swf files (code and resource). I must combine multiple SWF files into one.
Class RC4.as
import com.hurlant.crypto.prng.ARC4;
import com.hurlant.util.Base64;
import com.hurlant.util.Hex;
import flash.utils.ByteArray;
public class RC4
  private static const key:String = "keytest";
  private static var byteKeys:ByteArray = Hex.toArray(Hex.fromString(key));
  private static var rc4:ARC4 = new ARC4();
  public static function encrypt(clearText:String):String
  var byteText:ByteArray = Hex.toArray(Hex.fromString(clearText));
  rc4.init(byteKeys);
  rc4.encrypt(byteText);
  return Base64.encodeByteArray(byteText);
public static function decrypt(encryptedText:String):String
  var byteText:ByteArray = Base64.decodeToByteArray(encryptedText);
  rc4.init(byteKeys);
  rc4.decrypt(byteText);
  return Hex.toString(Hex.fromArray(byteText));

Sorry, exact message is "this movie could not be played".
There are hundreds of posts about this message but no one states a clear solution to the problem.
Your help will be much appreciated.
Thank you.

Similar Messages

  • How can I open McAfee encrypted (EEFF) PDF files with Adobe Reader?

    How can I open McAfee encrypted (EEFF) PDF files with Adobe Reader?  Get error "There was an error opening this document. Access denied".  Disabling Protected Mode in Reader doesn’t always work.
    McAfee: https://kc.mcafee.com/corporate/index?page=content&id=KB74299&actp=search&viewlocale=en_US &searchid=1240943327683

    If Reader ISN'T in the list of prpgrams to open with, click "Browse"
    In the "Browse window" go to C/Program files [or Program Files (x86)]/Adobe/Reader 11/Reader
    Select "AcroRd32.exe" and click "Open"
    Make sure "Always use the selected program to open this kind of file" is checked and click "OK".

  • How do you get multiple screens on the iPad with iOS 5.1.1?

    How do you get multiple screens on the iPad with iOS 5.1.1? We just upgraded to iOS 5.1.1, and we see no way to be able to open multiple screens at once. Before, there was a small button in the upper portion of any window. That button would take you from a particular window to the place where multiple windows are open at once. Does it do it differently? Is there a special setting button that we have missed? Thanks!
    One more thing: We are only talking about Safari.

    Guitaristica-
    I don't think I've seen a way to have separate Safari screens visible at the same time.  The small thumbnails were deleted in one of the iOS updates, and replaced with a multiple "Tab" system.
    You can open an additional screen in a new "tab" by pressing and holding on a link until a new menu comes up.
    Fred

  • How long it takes to repair an Apple iPad with the error "sim card not detected". The ipad is in Apple since 19 January and still has the status "Repair in Progress".

    How long it takes to repair an Apple iPad with the error "sim card not detected". The ipad is in Apple since 19 January and still has the status "Repair in Progress".

    There is no way any fellow user here can know anything specific about your repair status.  You will need to call Apple and ask them yourself.

  • How do I know if I have new Ipad with retina display the model says MC706B/A

    How do I know if I have new Ipad with retina display the model says MC706B/A

    You have a 3rd generation iPad. And yes it is a Retina model.
    Introduced     March 2012
    Discontinued     October 2012
    Model Identifier     iPad3,1
    Model Number     A1416
    Order Number     MC705LL/A (16 GB Black) MD328LL/A (16 GB White) MC706LL/A (32 GB Black) MD329LL/A (32 GB White) MC707LL/A (64 GB Black) MD330LL/A (64 GB White)

  • How do I synch the notes on my iPad with the notes on my iPhone?

    How do I synch the notes on my iPad with the notes on my iPhone?

    On both devices go to Settings>iCloud>Notes>On. You have to use iCloud as your default account for Notes as well. Settings>Notes>Default Account >iCloud.

  • How do I text back and forth between iPads with only wifi capabilities

    How do I text back and forth between iPads with only wifi capabilities

    Using FaceTime http://support.apple.com/kb/ht4319http://support.apple.com/kb/ht4319
    Troubleshooting FaceTime http://support.apple.com/kb/TS3367http://support.apple.com/kb/TS3367
    The Complete Guide to FaceTime + iMessage: Setup, Use, and Troubleshooting
    http://tinyurl.com/a7odey8http://tinyurl.com/a7odey8
    Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/TS4268http://support.apple.com/kb/TS4268
    iOS: FaceTime is 'Unable to verify email because it is in use'
    http://support.apple.com/kb/TS3510http://support.apple.com/kb/TS3510
    Using FaceTime and iMessage behind a firewall
    http://support.apple.com/kb/HT4245http://support.apple.com/kb/HT4245
    iOS: About Messages
    http://support.apple.com/kb/HT3529http://support.apple.com/kb/HT3529
    Set up iMessage
    http://www.apple.com/ca/ios/messages/http://www.apple.com/ca/ios/messages/
    iOS and OS X: Link your phone number and Apple ID for use with FaceTime and iMessage
    http://support.apple.com/kb/HT5538http://support.apple.com/kb/HT5538
    How to Set Up & Use iMessage on iPhone, iPad, & iPod touch with iOS
    http://osxdaily.com/2011/10/18/set-up-imessage-on-iphone-ipad-ipod-touch-with-io s-5/http://osxdaily.com/2011/10/18/set-up-imessage-on-iphone-ipad-ipod-touch-with-io s-5/
    Set Up Alert Sounds
    http://www.quepublishing.com/articles/article.aspx?p=1873027&seqNum=3http://www.quepublishing.com/articles/article.aspx?p=1873027&seqNum=3
    Extra FaceTime IDs
    http://tinyurl.com/k683gr4http://tinyurl.com/k683gr4
    Troubleshooting Messages
    http://support.apple.com/kb/TS2755http://support.apple.com/kb/TS2755
    Troubleshooting iMessage Issues: Some Useful Tips You Should Try
    http://www.igeeksblog.com/troubleshooting-imessage-issues/http://www.igeeksblog.com/troubleshooting-imessage-issues/
    Setting Up Multiple iOS Devices for iMessage and Facetime
    http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htmhttp://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l
    FaceTime and iMessage not accepting Apple ID password
    http://www.ilounge.com/index.php/articles/comments/facetime-and-imessage-not-acc epting-apple-id-password/http://www.ilounge.com/index.php/articles/comments/facetime-and-imessage-not-acc epting-apple-id-password/
    Fix Can’t Sign Into FaceTime or iMessage iOS 7
    http://ipadtutr.com/fix-login-facetime-imessage-ios-7/http://ipadtutr.com/fix-login-facetime-imessage-ios-7/
    FaceTime, Game Center, Messages: Troubleshooting sign in issues
    http://support.apple.com/kb/TS3970http://support.apple.com/kb/TS3970
    Unable to use FaceTime and iMessage with my apple ID
    https://discussions.apple.com/thread/4649373?tstart=90https://discussions.apple.com/thread/4649373?tstart=90
    How to Block Someone on FaceTime
    http://www.ehow.com/how_10033185_block-someone-facetime.htmlhttp://www.ehow.com/how_10033185_block-someone-facetime.html
    My Facetime Doesn't Ring
    https://discussions.apple.com/message/19087457#19087457https://discussions.apple.com/message/19087457#19087457
    How to watch FaceTime calls on the big screen with Apple TV
    http://www.imore.com/daily-tip-ios-5-airplay-mirroring-facetimehttp://www.imore.com/daily-tip-ios-5-airplay-mirroring-facetime
    Send an iMessage as a Text Message Instead with a Quick Tap & Hold
    http://osxdaily.com/2012/11/18/send-imessage-as-text-message/http://osxdaily.com/2012/11/18/send-imessage-as-text-message/
    To send messages to non-Apple devices, check out the TextFree app https://itunes.apple.com/us/app/text-free-textfree-sms-real/id399355755?mt=8https://itunes.apple.com/us/app/text-free-textfree-sms-real/id399355755?mt=8
    How to Send SMS from iPad
    http://www.iskysoft.com/apple-ipad/send-sms-from-ipad.htmlhttp://www.iskysoft.com/apple-ipad/send-sms-from-ipad.html
    How to Receive SMS Messages on an iPad
    http://yourbusiness.azcentral.com/receive-sms-messages-ipad-16776.htmlhttp://yourbusiness.azcentral.com/receive-sms-messages-ipad-16776.html
    Apps for Texting http://appadvice.com/appguides/show/apps-for-textinghttp://appadvice.com/appguides/show/apps-for-texting
    You can check the status of the FaceTime/iMessage servers at this link.
    http://www.apple.com/support/systemstatus/http://www.apple.com/support/systemstatus/
     Cheers, Tom

  • HT5622 How to keep my previous apps on my ipad with new ones that i purchased recently from iTunes

    How to keep my previous apps on my ipad with new ones that i purchased from iTunnes recently? i should note that i create new apple ID for my computer help friends.

    Apps and other itunes content are tied to the AppleId used to purchase them. They cannot be transferred.

  • Encrypt/decrypt same file with two different passwords

    Hi everyone:
    I'm quite new to Java and cryptography in general and have a theoretical question. Is the following scenario possible and how would it be implemented:
    Two users with two passwords (say, a regular user and a superuser) encrypt, decrypt, read from and write to the same file. The secret key for encryption and decryption should be based on their passwords (generated from their passwords), i.e. not stored anywhere on the system.
    I've been racking my brains but can't think of a way. Am I missing an obvious solution?
    Can it be done?
    Thanks,
    Michael

    I don't think you can avoid having more than just a password hash stored on the system. Using a combination of my approach and Jeff's approach I can implement this as long as you allow a password protected key store to be stored on each system. A given user's key store would contain his RSA private key and associated public key together with the admin user's RSA certificate (thought the admin user's public key could be stored in the program since it does not have to be kept private). The admin user's key store would contain only his RSA private and public keys.
    Assume that the data file is to be create by a standard non-admin user. His code performs the following actions -
    1) Generates a random symmetric algorithm key. Say a 128 bit AES key.
    2) He write a digest of this to the output file.
    3) He writes the random key encrypted with his public key to the file.
    4) He writes his public key (or certificate) to the file.
    5) He writes the random key encrypted with the admin users public key to the file.
    6) He encrypts the data using the random key writes the result to the file.
    This user can then update the file by
    1) reading from the file the digest of the random key.
    2) reading the random key encrypted with his public key.
    3) Decrypting this encrypted random key using his private key extracted from his keystore.
    4) Check the digest of this key to make sure he has the correct random key.
    5) skipping his certificate and the random key encrypted using the admin user's public key.
    5) Decrypting the data using the random key.
    6) Update the data.
    7) Re-encrypt the file as described in the first part using a new random key.
    The admin user can
    1) read from the file the digest of the random key.
    2) skip the random key encrypted using the user's public key.
    3) reading the user's public key from the file (for use later if the file needs to be updated).
    4) read the random key encrypted using the admin's public key.
    5) decrypting the random key using the admin's private key obtained from his key store.
    6) check the digest of the random key to make sure it is correct.
    7) decrypt the the data.
    The admin can edit the data since he can re-encrypt the data in a similar manner to the way it was created in the first place.

  • How can I share the music on my ipad with my imac using home sharing?

    I’ve been trying to share the music on my ipad with my imac. I've set my apple ID account on both of them but I can't get any of the songs I purchased on my ipad to my imac. Even though, when I click my albums it shares the music on my imac to  my ipad. the reason why I couldn't do this before was that I had recently purchased my ipad and created a new account that was different from the account on my imac. so can I use home sharing on itunes with my ipad and imac? and if not then how else could I share the music on my ipad to the itunes on my imac?

    iOS: Setting up Home Sharing on your device - http://support.apple.com/kb/ht4557 - "With Home Sharing in iOS 4.3 or later, you can stream your entire iTunes library over your home Wi-Fi network from your Mac or PC right to your iPhone, iPad, or iPod touch."
    The above makes it sound like it is one way, computer to mobile device.  Perhaps something below says differently.
    Home Sharing Support page - http://www.apple.com/support/homesharing/
    iTunes: Setting up Home Sharing on your computer - http://support.apple.com/kb/HT4620
    Troubleshooting Home Sharing - http://support.apple.com/kb/TS2972
    Understanding Home Sharing - http://support.apple.com/kb/HT3819

  • How do I set up my emails on ipad with onetel please

    How do I set up emails on my ipad using onetel

    http://community.talktalk.co.uk/t5/Mobile/onetel-com-emaill-address-settings-for -an-iphone/td-p/870410

  • How to resolve issues when using Adobe Reader DC with LEED Online?

    This morning I downloaded Adobe Reader DC however now I am no longer able save the PDF in LEED Online.  How do I resolve this issue or revert back to the older version of Adobe Reader?

    Before the DC version we were able to save our passwords from University of Phoenix and when opening the document saved to our computer it would unlock automatically.  This new version DC will not allow this even when you say Yes.
    The Right Column in previous versions would allow to disable until requested to appear this version it opens regardless.
    Just my opinion here  Adobe Failed at customer satisfaction on this UPGRADE.
    Regards a unhappy Adobe user.

  • How to Resolve a PDP authentication error on iPad mini

    What do I do if I get a PDP authentication failed error when I try to access data?

    Same issue.  Sitting here in Europe (Germany) trying to do some work.  From the Support technical discussions, there are numerous complaints like this.  Went by T-Mobile twiice already; they point the finger at Apple.   (I'm sure I could call back to the USA and sit on hold for an hour, with most likely Apple blaming the telco's.)  Not very impressed to say the least.  Wonder how Android is doing in this regard ...........?

  • How can i access app store funds on ipad with different apple id to purchase app for iphone?

    would like to have one, rather than two, apple id for both ipad and iphone. can't figure out how to delete id for iphone and assign same one as ipad.
    want to purchase app on iphone. can't access funds available on ipad.

    Singin into iCloud setting with tha same ID to sync infos (contacts,calendar etc...) if you want. Do the same for Message, facetime and iTunes&App Stores (that is what you ask for) settings.

  • How can i install garage band in my iPad with ios4

    Ios4 seems to work beter with Io Dock alesis than ios5
    i have a ios4 iPad 2. But the gband donwload reagires iOS 5!!
    How can i solve this

    No solution. iOS 5 or above is required to run Garageband application on Apple devices.

Maybe you are looking for

  • Mistake in iframe

    There's a mistake on this page in the iframe code under #1. The code should be written as follows: <iframe src="http://katiescafe.tumblr.com/" width="916" height="1500" marginwidth="0" marginheight="0" frameborder="no" scrolling="no" style="border:0p

  • ExecTask - java.io.EOFException: Unexpected end of ZLIB input stream

    BOXI 3.1 FP 7 deployed on AIX environment with all the lang packs. Trying to install SP2 on AIX, when it comes to deploying the war files, AnalyticalReporting, the install encounters error. This error appears to be with size of the war file.  Anyone

  • What can cause false "disk needs to be repaired" message?

    Occasionally, when using OnyX or Disk First Aid, a message states to restart the computer, holding Command-R and to repair my disk. Every single time, the disk turns out to be OK. Question 1: Is this a false reading, or is the disk actually being fix

  • Convert time to number and number to time

    I'm using SAP 4.0b I'm looking for function that converts time to number and number to time. Any suggestion?

  • Layouts Problem in OBPM10GR3 Enterprise

    Hi all, 1) I created layouts in studio. 2) Deployed the process to the enterprise server with the layouts. 3) Then changed the layouts in studio again. Added a new layout and removed the old one. 4) The Re-Deployed the process to the enterprise serve