Actionscript 3 :: Class For Base64 Encryption/decryption?

Jul 8, 2011

What would be a best Class for base64 encryption/decryption in Action Script?

View 3 Replies


Similar Posts:


ActionScript 3.0 :: AIR Encryption / Decryption Of String

Oct 18, 2009

I'm using as3crypto classes for encryption/decryption of a string. The encryption is ok (I'm using the following encryption method):

Code:
var cut:ByteArray = new ByteArray();
cut.writeUTFBytes(iutime);
var key:ByteArray = new ByteArray();
var random:Random = new Random();
random.nextBytes(key, 8);
var aes:ICipher = Crypto.getCipher("blowfish-ecb", key, Crypto.getPad("pkcs5"));
aes.encrypt(cut);

Now, I'm trying to decrypt the encrypted string using the same method, but I can't and I don't know why. Every time I'm debugging my air application I'm receiving an error (something about the decrypt() and IPad). How to use the same method to decrypt?

View 1 Replies

Make PGP Encryption/Decryption In Adobe Flash?

Apr 11, 2010

Is it possible to make PGP encryption/decription in Adobe Flash Application?

View 1 Replies

C# - RSA Encryption From Flex Client And Corresponding Decryption From Web Service

May 24, 2011

I'm having a problem setting up RSA encryption/decryption mechanism between flex client and web service written in c#. The idea is this: I'll encrypt some text from flex and then decrypt it from web service. I'm using as3crypto library from google. It is encrypting/decrypting text properly. I also have the code on the web service side to encrypt/decrypt properly. My problem is synchronizing them - basically sharing the public key to flex and keeping the private key to the web service.

My flex "encrypt" function takes modulus and exponent of RSA to do text encryption, so how do i get these modulus and exponent attributes from the web service's RSACryptoServiceProvider, so they speak the same standard.

[Code]...

View 3 Replies

ActionScript :: Flex - Library For Twofish Encryption / Decryption?

Sep 14, 2011

Do you know a library in ActionScript 3 that can encrypt and decrypt using the TwoFish algorithm? I have been using as3crypto for other cryptographic algorithms, but unfortunately, it doesn't seems to handle Twofish...

View 2 Replies

ActionScript 3.0 :: Does Flash Have Any Built In Encryption / Decryption Tools

Aug 5, 2010

Does flash have any built in encryption / decryption tools?I would like to send text from a server to flash, and would like to encrypt it on the server then have flash decrypt it. How can I do this?

View 1 Replies

ActionScript 2.0 :: MD5 Hash Decryption In Flash?

Feb 28, 2007

See %subj%. Does anybody know how to make it or could you point me on some web or example

View 8 Replies

ActionScript 2.0 :: Decryption And Dynamic A Text File

Oct 9, 2010

I am kind of new to AS and not sure how to decrypt a text file. If I have a text file that is on my web server (which I need to be encrypted) and is used to retrieve variables for Dynamic Text fields. How do I decrypt the file and then take the variables and put them in the Dynamic Text fields? What is the best method to make the files unreadable but can be decrypted by the flash file? Currently I use this to get the variables and put them in Dynamic Text field but I want to add some kind of encryption to this.

[Code]....

View 0 Replies

Flex :: Converting A GUID To Base64?

Aug 4, 2009

In Flex, I have a GUID that I receive as input in the following format "as a string. How would I convert this to a string of Base64 encoded values?

Please note that we have to account for leading zeroes in each section of the GUID, for example, "0091AFBC-8558-482A-9CF6-64F1745E7AC1"

View 1 Replies

Flex - Opening A Base64 PDF In Javascript In IE6

May 3, 2011

In javascript, I have a variable which holds a pdf in base64 (the pdf is generated in flex and passed to js). I want to open it in the browser (ie I want the browser to display the open/save dialog box letting the user open or save the pdf).

I am using Data URI which works fine in some browsers, but is not supported in IE 6/7:

function getPdf(pdf) {
window.open("data:application/pdf;base64," +pdf);
}

How can I get this PDF to open in IE6 and 7? I've read about MHTML as an alternative to data uri but I don't think it can do what I need, or can it? For now I just need to open pdfs but in the future I will probably need to add support for xls (MS Excel) files too. Currently I'm using Flash's Filereference.save to let the user save the pdf to the disk then he can open it, but the client is insisting on giving the user a choice to open it automatically rather than forcing him to save it first.

View 2 Replies

Actionscript 3 :: Possible To Compress The Base64 String?

Jul 3, 2011

Out of a drawing I'm generating a PNG and upload it as a Base64 string via PHP to my server. Is it possible to compress the Base64 string in AS3?

[code]...

View 2 Replies

Database :: Why Flash / Flex RIA Choose Base64 XML Over AMF

Aug 10, 2009

I have recently been using Charles the debugging app. And noticed a very chatty app named skyrocket (a very very cool slide presentation app) sending a lot of data across the wire. It is built in flex by the looks and I was wondering why they had chosen to send their data using base64 and not amf. Is it because they don't want to be locked into the flash platform? Or could there be another reason. Is it to store it as XML in the database as they don't want to be dealing with amf when handing data to other services/clients (iPhone etc).

View 2 Replies

Php :: Ajax - Flash Base64 Encode/decode?

May 31, 2010

I'm using AS3 to base64 encode a JPG and pass it to Javascript. I'm attempting to use AJAX to pass that base64 encoded string to PHP and have PHP decode it. (I know I could send it back to Flash and Flash could decode it and send it to PHP, but I'm trying to eliminate the need for Flash on the decoding end).It appears that AS3's encodeToBase64String() function and and PHP's base64_decode() function do not use the same algorithm, as PHP evaluates it as a base64 encoded object, but does not seem to output it properly

View 4 Replies

Asp.net :: Base64 Encoder Library Download Assitance

Mar 21, 2012

I am referring to Send image from flash to Asp.net for sending image captured by a webcam to an asp.net page. However I need to download base64 encoder to proceed. The link the user provided for downloading it seems to be broken. Can anyone tell me how I can download the base64 encoder?

View 2 Replies

ActionScript 2.0 :: JPG File From External Server To Base64?

Aug 9, 2010

'm trying to convert a movieclip to base64 and send it a server.

I've checked everywhere and I realized I can do it with an external PHP page that will communicate with the flash file and will send the MC as BASE64 JPG using POST.

Unfortunately, my client asked me to do that WITHOUT ANY EXTERNAL FILES (so I can't use the PHP page). Only the final SWF should be used.

I've tried to convert the project from AS2 to AS3, but it seems to be almost impossible.

Is there any way to convert the MC to JPG without the PHP page?

View 5 Replies

ActionScript :: Create Image From Data-in-uri (base64-encoded PNG) In It?

Jan 11, 2011

I have a string of of base64-encoded PNG image that is suitable to use as a src (source) attribute in a <img> tag. However I need to transfer this image to Flash applet where I need to create (show) the image fast. Is there a way to simply use the data string and somehow create an image (inside a Flash movie) from it?

View 1 Replies

Php :: Flex - Retrieving Base64 Encoded Image From Database?

Mar 23, 2011

I'm developing a flex application that displays a list of images along with some metadataThe images are less than 500kb. They are stored in the database as base64 encoded stringsretrieved using PHP, send over to flex as XML (which creates a fairly large XML output file)Now my problem is that, while I can display upto 2-3 images easily, anything more than 3 or sometimes 2 images will cause the images to be corrupt. Sometimes the whole app fails.I am guessing this is due to the large size of the generated XML. I know I am doing something wrong here. I want to know what is the proper method for storing/retrieving a lot of images in a flex application.

View 2 Replies

Actionscript 3 :: Flash Builder - Unzip The Files Using Base64 Encoding?

Aug 15, 2011

I have a issue here with unzipping the .zip files that i have in combobox.i select 1 .zip file and after selecting the particular .zip file Button should unzip it and put the contents in another combobox.

[Code]...

View 2 Replies

As2 :: Image - Convert Base64 Encoded String To BitmapData In Flash?

Aug 23, 2011

I have converted a jpg image to Base64 string and saved somewhere. Now How can i convert this Base64 encoded string to bitmapData in flash as2?

View 1 Replies

ActionScript2 :: Javascript - Base64 Encode/decode Binary Data?

Aug 24, 2011

I have an actionscript 2 code that uses base64 to encode/decode incoming data. problem is that data is binary and includes null (0 characters), actionscript 2 fails when handing null to charCodeAt.I figured what I need is an actionscript 2 lib that can do base64 encoding/decoding on an array rather than a String.

View 1 Replies

C# :: Byte Encryption ( DES-CBC Zero Pad )?

Apr 4, 2010

Currently writing my own AMF TcpSocketServer. Everything works good so far i can send and recieve objects and i use some serialization/deserialization code. Now i started working on the encryption code and i am not so familiar with this stuff.I work with bytes , is DES-CBC a good way to encrypt this stuff? Or are there other more performant/secure ways to send my data? Note that performance is a must :). When i call: ReadAmf3Object with the decrypter specified i get an: InvalidOperationException thrown by my ReadAmf3Object function when i read out the first byte the Amf3TypeCode isn't specified ( they range from 0 to 16 i believe (Bool, String, Int, DateTime, etc) ).I got Typecodes varying from 97 to 254?I think it has something to do with the encryption part. Since the deserializer works fine w/o the encryption. I am using the right padding/mode/key?

I used: http:[url].... as as3 encryption/decryption library. And i wrote an Async tcp server with some abuse of the threadpool ;)Anyway here some code:

C# crypter initalization code
System.Security.Cryptography.DESCryptoServiceProvider crypter = new DESCryptoServiceProvider();[code]........

View 2 Replies

ActionScript 3.0 :: Base64 Encoding Large ByteArray (AlivePDF) Extremely Slow?

May 3, 2010

So I'm using AlivePDF to generate a 6 page PDF with a range of text and graphics. It's a fairly large PDF, prob 4mb when saved. I need to be able to pass the PDF along with a few other variables to a PHP script that uploads the PDF and then sends an email.

Because I need to pass the PDF data along with other information, I've been using a standard POST request with URLVariables, only I Base64 encode the PDF ByteArray before sending to avoid any sort of corrupt data. This works fine, except the Base64 encode operation takes ~8 seconds, and sometimes longer on a slower machine, causing a timeout.

View 8 Replies

C# :: Actionscript 3 - Flash & C# Encryption

Jul 6, 2010

I am creating a TCP connect with Flash to a C# daemon. Now I have come to the part of encryption... I know that Flash is decompilable and so not safe to store private keys on. I need 2 way encryption because of the messages that have to be send back to the Flash client. I have been thinking and googling, but cannot find a proper solution yet.

View 2 Replies

ActionScript 3.0 :: P2P Connection WITHOUT Encryption?

Mar 18, 2011

Is there any way to create a direct data connection between two flash clients without the use of Cirrus?

I'm asking because I create a multiplayer iPhone game with flash which currently uses Cirrus for all online multiplayer data. now I read that, if your iPhone app uses encryption (which cirrus does) you need to go through a long encryption export approval process by the U.S government. I want to avoid this, so now i'm looking for another method to exchange data directly between clients without having to route all traffic through my server.

View 1 Replies

ActionScript 3.0 :: Flash SWF Encryption?

Apr 2, 2012

I would like to protect my published SWFs against decryption.I've found some commercial tools performing what I need, but I think it's always wise to wait and think about it before spending money. Does anybody know valid (freeware) alternatives to do that? Do you currently protect your SWF? What may be my satisfaction level of protection (I am perfectly conscious that a perfect encrypter does not exist, but if decryption is difficoult, maybe a not-so-motivated hacker would give up)?

View 10 Replies

Professional :: No Encryption Has Been Applied To The Swf File?

Jan 10, 2011

I've got an AS3 loader making a Get URLRequest on the local machine (not browser based).  The URL being reported back has this:[url]explain why [[DYNAMIC]]/3 is being appended to the URL at runtime?  No encryption has been applied to the swf file.  What does [[DYNAMIC]] mean?

View 5 Replies

Encryption - Encrypting Flash Files

Dec 8, 2009

what's the recommended method to encrypt flash files? i'd like to make some flash programs that are commericals, how can i made sure that they won't get decrypted or to make sure that i used to strongest file encryption possible.

View 2 Replies

C# :: Actionscript 3 :: Share Encryption Between Script And C#?

Apr 19, 2010

I am trying to share encryption between Action Script and C#. My task is to decrypt the following message within C#

f1ca22a365ba54c005c3eb599d84b19c354d26dcf475ab4be775b991ac97884791017b12471000def05bb77bfe9c3a97d44ef78c9449f12daf6e25b61ab1a281

It uses Rijndael encyption , ECB mode (electronic code book), Key: Pas5pr@se , 128 bit key size and block size.

View 3 Replies

Php :: Two RC4 Implementations Generated Different Encryption Results?

Jun 10, 2010

Why is encryption algorithm may give different results in AS3 and PHP? In AS3 I use library from [URL].And in PHP I use RC4 Cipher.

View 3 Replies

Actionscript 3 :: Implement Encryption In Flex 3?

Apr 12, 2011

we have one application where we are pulling some confidential information from one of the product design tools. So we have used HTTPS as the channel and also we are encrypting the Request Parameters and Some data before we sent it to Web Services.Everything seems OK.But when we gave the application for Security auditing they found we have hard coded the encryption key in source code. They have used Sothink SWF Decompiler to look into my SWF file. They caught the key and raised concern over it.

We have developed this application using Flex 3(SDK 3.4). Is there any best way to use Secret key without being hard coded in source code. If anybody come across this kind of problem, please let me know. use the secret keys in SourceCode without being Hard coded.

Here is my sample code:

var currentResult:String = "";
var strDataToEncrypt:String = "";
var kdata:ByteArray;

[code]....

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved