as3crypto

AS3Crypto RSA Signing

爱⌒轻易说出口 提交于 2019-12-25 04:39:28
问题 I'm having some troubles matching the value returned from RSA signing a Base64 SHA1 hash in the actionscript as3crypto library with the result returned in c#. I'm passing in a Base64 hash decoded as a byte array to the sign() function provided in as3crypto and base64 encoding the result. However, this result never matches the returned result from a c# function which performs the same task. Does it matter that the function takes in and returns hex even though it works at the byte array level?

sha1 hash from as3crypto differs from the one made with PHP

荒凉一梦 提交于 2019-12-21 05:56:12
问题 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:' + Hex.fromArray(digest)); result : ec60c0fd70d82a7785f6c9a02dbe16f2e40b1344 Make SHA1 from the same string in PHP: print "SHA:".sha1("12345"); result : 8cb2237d0679ca88db6464eac60da96345513964 If I try other tools to obtain hash I get the second result, so it looks like the

Encrypt in .Net and decrypt in AS3

橙三吉。 提交于 2019-12-13 02:43:33
问题 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 Encryption? But I am struggling to find .Net equivalent that would use same algorithm for encryption. I have tried RC4 example from 4guysfromrolla blog which works too slow for me. I have tried AES on this example (http://msdn.microsoft.com/en-us

decrypt a as3crypto encrypted text in PHP

青春壹個敷衍的年華 提交于 2019-12-04 02:11:35
问题 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 enlighten me... here's the scenario: encrypt this in http://crypto.hurlant.com/demo/: encryption: AES mode: CBC padding: none key: 11918f8bcd112e92744125008722050c text: Lorem ipsum dolor sit amet, consectetur adipiscing elit. In ut massa nec purus

sha1 hash from as3crypto differs from the one made with PHP

心不动则不痛 提交于 2019-12-03 21:02:17
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:' + Hex.fromArray(digest)); result : ec60c0fd70d82a7785f6c9a02dbe16f2e40b1344 Make SHA1 from the same string in PHP: print "SHA:".sha1("12345"); result : 8cb2237d0679ca88db6464eac60da96345513964 If I try other tools to obtain hash I get the second result, so it looks like the result from PHP is correct. Question: How can I get the same hash with as3crypto? BTW: when testing I