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
4
votes
2 answers

https from as3 air project to webservice using as3httpclientlib

I am trying to change webservice implementation I have done over to use HTTPS. I have been using the as3httpclientlib (https://code.google.com/p/as3httpclientlib/). When I use a non-ssl endpoint it works as expected. However when I use an SSL…
Tom
  • 12,591
  • 13
  • 72
  • 112
3
votes
1 answer

Multipass login to assistly.com with as3crypto

I'm trying to automatically login my users into assistly.com with their multipass login as described here: http://dev.assistly.com/docs/portal/multipass I have tried to convert their code examples ( https://github.com/assistly/multipass-examples) to…
iddqd
  • 700
  • 7
  • 21
3
votes
1 answer

AS3 RSAKey.sign() != PHP openssl_sign()

everyone! I have some PHP code to sign some text and it works fine. I need to have equivalent of this code on actionscript 3. I need your help. $privateKeyPath = "private.key"; $message = "hello"; $privateKey =…
3
votes
1 answer

How to decrypt with as3crypto string encrypted with by aes-256-ecb?

String is encrypted with php as here. It can be decrypted by this with parameters: Rijndael-256, ECB and Base64. But it cannot be decrypted by my ActionScript code: var text:String = "Some data"; var key:ByteArray = new…
user1826684
  • 138
  • 2
  • 11
2
votes
1 answer

Blowfish decryption / Action Script 3 (AS3Crypto)

I have tried using Blowfish (CBC) technique for encrypting / decrypting a text from PHP to Flash. After hours of investigation and research, I got to know that AS3Crypto could be used for decryption of Blowfish (CBC Mode). In a simple example, I'm…
Divisible
  • 182
  • 1
  • 7
2
votes
1 answer

Using as3Crypto to encrypt/decrypt without ampersands

I was using as3Crypto with no probs http://www.zedia.net/2009/as3crypto-and-php-what-a-fun-ride/ but then I saw some special characters and I realised I could encounter ampersands. Which is a pain because they will be inserted into a query…
Ashley Coolman
  • 11,095
  • 5
  • 59
  • 81
2
votes
1 answer

as3crypto issue

I am using the as3crypto library to get the AES algorithm working on a small project that i am doing. This is how i get the crypto function : var cipher:ICipher = Crypto.getCipher("simple-aes-cbc", key, Crypto.getPad("pkcs5")); As you can see, I am…
midhunhk
  • 5,560
  • 7
  • 52
  • 83
2
votes
1 answer

Error #1502: A script has executed for longer than the default > timeout period of 15 seconds

I'm trying to make a secure login system using Flash (AS3) and C # as a server. But I have this problem: Error: Error #1502: A script has executed for longer than the default timeout period of 15 seconds. at…
2
votes
4 answers

sha1 hash from as3crypto differs from the one made with PHP

Make SHA1 hash from string '12345' with as3crypto in as3 the same way how it is done in there example: var sha1:SHA1 = new SHA1; var src:ByteArray = Hex.toArray("12345"); var digest:ByteArray = sha1.hash(src); trace('SHA:' +…
user621684
  • 51
  • 1
  • 3
2
votes
1 answer

Adobe Air encryption of mp3 file with as3crypto only encrypts the first few bytes

I am using the as3crypto library to encrypt mp3 files in an Adobe Air application. The code below runs without error but I realized that only the first few bytes of the mp3 file are getting encrypted but not the whole file. I have no idea what’s the…
Max
  • 61
  • 4
2
votes
1 answer

Upload a picture to cloudinary using the REST API

We are developing an App using AIR/AS3 and would like to upload a picture to cloudinary via the REST API from the client, instead of using Node.js. Reading the Documentation of cloudinary, we have found that it should be done via a HTTP/S POST…
GV3
  • 491
  • 3
  • 16
1
vote
1 answer

AS3 Calculate Longitudinal Redundancy Check (LRC) - Socket

I need to send to the socket: PIPE_DELIMITED_MESSAGE STX = String.fromCharCode(02) //// **Good** ETX­ = String.fromCharCode(03) //// **Good** LRC = Unable to calculate correctly Request: LRC is the result of 8­bit EXCLUSIVE­ OR…
Speego
  • 71
  • 7
1
vote
0 answers

Connecting to an SSL server with self-signed cert in Flash

Using as3crypto's TLSSocket it should be possible to connect to an SSL server. However, my server uses a self-signed certificate. How can I configure the client to accept that certificate? I'm assuming I need to hard-code the cert's fingerprint in…
Bart van Heukelom
  • 43,244
  • 59
  • 186
  • 301
1
vote
0 answers

AES-CBC encrypt in ActionScript, decrypt in Javascript

We have a legacy tool written in ActionScript which encrypts input using AES-CBC and a hard-coded shared key. I'm trying to write the corresponding decrypt function in Typescript but have not been successful. The AS3 side uses the Hurlant as3crypto…
1
vote
1 answer

Decrypt AES-CBC in php from as3crypto

I've found a lot of discussions on this but none seem to get this working for me so any help is appreciated. I'm encoding some text in flash using the as3crypto library and then sending that encrypted text to a php script where I need to decode it.…
ScottF
  • 565
  • 6
  • 21
1
2 3