Questions tagged [as3crypto]

As3 Crypto is a cryptography library written in Actionscript 3 that provides several common algorithms. This version also introduces a TLS engine (TLS is commonly known as SSL.)

  • Protocols: TLS 1.0 support (partial)
  • Certificates: X.509 Certificate parsing and validation, built-in Root CAs.
  • Public Key Encryption: RSA (encrypt/decrypt, sign/verify)
  • Secret Key Encryption: AES, DES, 3DES, BlowFish, XTEA, RC4
  • Confidentiality Modes: ECB, CBC, CFB, CFB8, OFB, CTR
  • Hashing Algorithms: MD2, MD5, SHA-1, SHA-224, SHA-256
  • Paddings available: PKCS#5, PKCS#1 type 1 and 2
  • Other Useful Stuff: HMAC, Random, TLS-PRF, some ASN-1/DER parsing

https://code.google.com/p/as3crypto/

40 questions
1
vote
1 answer

Python AES encryption(PyCrypto) -> AS3 decryption (as3Crypto) using AES

I've a django app which serves encrypted media files to Flash apps. Encryption in python is done with PyCrypto as follows (I include description too in case useful): def encrypt_aes(key, text): try: raw = _pad(text) iv =…
andyw
  • 3,505
  • 2
  • 30
  • 44
1
vote
2 answers

Padding error in as3Crypto when trying to work a-sync

I'm trying to encrypt/decrypt files in flex (AIR) using the as3crypto package. the problem is that when attempting to process slightly large files (over 5M) the process time gets ridiculously long and the client freezes (get the "not responding"…
Gilad Manor
  • 21
  • 1
  • 2
  • 7
1
vote
1 answer

AES broken between Node.js and Actionscript (as3crypto)

I'm trying to make AES-256 encryption work across node.js and actionscript, but every approach I'm trying is leading to a deadend. Below are two different attempts which both fail (for different reasons). One important thing to note is that in both…
davidkomer
  • 3,020
  • 2
  • 23
  • 58
1
vote
0 answers

first few characters lost during decryption

I am using AES CBC encryption in VB.Net and decryption is done using AS3Crypto. First few characters (about 16) are missing during decryption and replaced with random characters like below. 05[ÚðÊ\ÃPôôÄ]óbR Here is my .net code. On AS3Crypto demo…
Laurence
  • 7,633
  • 21
  • 78
  • 129
1
vote
1 answer

Encrypt in .Net and decrypt in AS3

I need to encrypt some files in ASP.net and decrypt them in a flash application built with Action Script 3. AS3 developer found a lib call AS3crypto which seems like a good one for AS3. The idea is encrypt and decrypt using same key. Symmetrical…
Laurence
  • 7,633
  • 21
  • 78
  • 129
1
vote
2 answers

decrypt a as3crypto encrypted text in PHP

i tried to encrypt a text in as3crypto via the demo app. now i am trying to decrypt the crypted text via php but it seems that the text is not properly decrypted. has anyone know how to properly decrypt it via PHP? or am I doing it wrong? please…
gptimajo
  • 139
  • 1
  • 13
1
vote
1 answer

AS3 - Ruby encrypted communication?

I need a proven example to show how its possible to encrypt a string in AS3 and decrypt it in Ruby and vice versa ?, I found articles in PHP, but, I didn't find any in Ruby. Can some one help by providing an example or some blog ?
simo
  • 23,342
  • 38
  • 121
  • 218
0
votes
1 answer

Using as3Crypto to encrypt/decrypt with only URL Query save chars

I was using as3Crypto with no probs http://www.zedia.net/2009/as3crypto-and-php-what-a-fun-ride/ but it produces a string which includes equal (and probably other URL Query unsafe characters). Is there a way to encrypt like this? Current code…
Ashley Coolman
  • 11,095
  • 5
  • 59
  • 81
0
votes
2 answers

Errors decrypting as3crypto blowfish data in PHP

I'm kind of new to ActionScript 3 at the moment and been trying to use the as3crypto library to encrypt some data with the blowfish algorithm before submitting it to the server for processing. I know you can use https, but most browsers still…
Brian
  • 3,013
  • 19
  • 27
0
votes
1 answer

Getting as3crypto to work with ruby (Gibberish/EzCrypto)

I'm trying to get as3crypto to play nice with either Gibberish or EzCrypto in AES-128 mode. No matter what combination of settings I use I simply cannot get one to decrypt the other, and usually get a "bad decrypt" message in ruby. Each contained…
Ehud
  • 151
  • 1
  • 5
0
votes
1 answer

RSA sign function problem

I'm working on an RSA sign() function for generating a signed URL for private streaming. I was testing on PHP code, but I want to re-code that in Flex. Here is the part of PHP code: function getCannedPolicy($resource, $expires, $key,…
ExtremeBt
  • 86
  • 9
0
votes
2 answers

TLS error codes in as3crypto

I am using TLSSocket (part of as3crypto). Every now and then I see this in my console: GOT ALERT! type=51 and then the socket will close. It appears that this is the error handling in TLSEngine.parseAlert. The trouble is, I don't know what the…
paleozogt
  • 6,393
  • 11
  • 51
  • 94
0
votes
1 answer

XML in flash that should fetch data from an external xml file

Well, i am new in this flash thing and in the learning stage. on the stage are four buttons. they will behave like map. now what i want to do is, that i want to use xml. when i click on button, it should display some text, like title, description,…
themajiks
  • 420
  • 1
  • 8
  • 23
0
votes
1 answer

Base64 encoded output differs from as3crypto and pycrypto encryption libraries

I'm trying to use symmetric encryption to pass data from actionscript 3 (client) to python (server). The libraries I'm using are as3crypto and pycrypto, I'm not sure if I'm using these libraries correctly. Actionscript 3: private function…
0
votes
2 answers

Error: PKCS#5:unpad: Invalid padding value. expected [154], found [253] using as3crypto

I downloaded as3crypto and have been trying to integrate it into my project. I'm trying to do a simple test to match the decrypt results I'm getting in the demo - http://crypto.hurlant.com/demo/ but I'm getting the above error. I'm working on the…
jbassking10
  • 833
  • 4
  • 15
  • 42