from Crypto.Cipher import AES
mode = AES.MODE_ECB
secret = "9kL8yb/3Tu2czOr5qfiGPgJmx25s+T15"
cipher = AES.new(secret, mode)
DecodeAES = lambda c, e: c.decrypt(e.decode("hex"))
pre_add = DecodeAES(cipher, incoming)
I recently did the something similar, but going from java to node. Perhaps my blog post will prove mildly helpful to you.
http://tauren.com/2013/01/decrypt-java-shiro-rememberme-cookie-in-node-js-express-app/
I believe I made some improvements to the node.js code since that post, let me know if it would help and I'll dig them up for you.
Tauren
--
--
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 nod...@googlegroups.com
To unsubscribe from this group, send email to
nodejs+un...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
---
You received this message because you are subscribed to the Google Groups "nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--