Hi Ben, Thanks for your comments.
I'm using DES because I have not succedded using AES :( So far, the only way I've found that the ActionScript client can to with NodeJS in encrypted data is: - The client use ASCrypto, des-cbc, NullPad - The server set decipher.setAutoPadding(false) For all other encryption methods I've tried, both .setAutoPadding(true) and .setAutoPadding(false), I always got Decipher Final Error :( Also, when I use NullPad in client, and set decipher.setAutoPadding(false) in node, it will auto pad 0x0 at the end of the decrypted buffer if the buffer doesn't match block size. That's quite anoying. Is there any way to get rid of the trailling 0x0s? Thanks, ty Regards, ty 2012/11/29 Ben Noordhuis <i...@bnoordhuis.nl> > On Wed, Nov 28, 2012 at 6:32 PM, Yi Tan <yi2...@gmail.com> wrote: > > 2. DecipherInitIv error when create DES decipher: > > cipher = crypto.createDecipheriv('des', 'BEA12F82889BE82A', > > '5725A92737DD73DD') // Error: DecipherInitIv error > > I see you already figured it out but I'm curious why you're using DES. > It's considered quite insecure. > > > 3. Error: DecipherInitIv error when call Decipheriv.final() in > "aes-128-cbc" > > decipher. > > Missing padding? What happens when you set decipher.setAutoPadding(true)? > > -- > Job Board: http://jobs.nodejs.org/ > Posting guidelines: > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines > You received this message because you are subscribed to the Google > Groups "nodejs" group. > To post to this group, send email to nodejs@googlegroups.com > To unsubscribe from this group, send email to > nodejs+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/nodejs?hl=en?hl=en > -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to nodejs@googlegroups.com To unsubscribe from this group, send email to nodejs+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en