Received: by 10.236.84.67 with SMTP id r43mr6329285yhe.22.1349704136341; Mon, 08 Oct 2012 06:48:56 -0700 (PDT) X-BeenThere: nodejs@googlegroups.com Received: by 10.236.154.170 with SMTP id h30ls8608152yhk.7.gmail; Mon, 08 Oct 2012 06:48:43 -0700 (PDT) Received: by 10.236.35.66 with SMTP id t42mr12030522yha.10.1349704123526; Mon, 08 Oct 2012 06:48:43 -0700 (PDT) Received: by 10.236.35.66 with SMTP id t42mr12030520yha.10.1349704123509; Mon, 08 Oct 2012 06:48:43 -0700 (PDT) Return-Path: Received: from mail-yh0-f41.google.com (mail-yh0-f41.google.com [209.85.213.41]) by gmr-mx.google.com with ESMTPS id r7si1171722anp.3.2012.10.08.06.48.43 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 08 Oct 2012 06:48:43 -0700 (PDT) Received-SPF: pass (google.com: domain of jcog...@gmail.com designates 209.85.213.41 as permitted sender) client-ip=209.85.213.41; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of jcog...@gmail.com designates 209.85.213.41 as permitted sender) smtp.mail=jcog...@gmail.com; dkim=pass header...@gmail.com Received: by mail-yh0-f41.google.com with SMTP id 47so819058yhr.28 for ; Mon, 08 Oct 2012 06:48:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=H98YfbhKQJ2SL8brrA3DIlbUpSXZyYElyRIK4N68x6Q=; b=0Pbf2RM1WioNxP9BfpZ1fyYL4ZhnkQcnJ83ZsNsX6qHifAp+IWvR1SrZQSDtPlpMeS Ws1gt72lc7blz0HY5Qi7c3/PeWidZDxoCQ/We3buBdl50Acc4gxCAh0xnpR7z1hthCrt ZiuDS3+0BLSm04BvvM1cjZumVTds1oUn62KnFoDt8/+tb5X8O2/VKmpHdD7l7cXonuXK tw2hmgmQxP9MgIb829Rg0+0S4C0XfTk9vRz57JPcLkA74KqPTTY/O0ZI5xv7Cy1rFDmU BJ8mC0TSCQLebmgN6V7iqCQTavE/9SnaosVXMhICpRNcq2K6z/nW9zqqXQYiPz/9yEWp TD5A== MIME-Version: 1.0 Received: by 10.58.162.130 with SMTP id ya2mr2956804veb.2.1349704123342; Mon, 08 Oct 2012 06:48:43 -0700 (PDT) Received: by 10.58.211.6 with HTTP; Mon, 8 Oct 2012 06:48:43 -0700 (PDT) Date: Mon, 8 Oct 2012 15:48:43 +0200 Message-ID: Subject: Can someone help with the AES cipher From: James Coglan To: Node list Content-Type: multipart/alternative; boundary=047d7b6766dcd2e01704cb8c7a9f --047d7b6766dcd2e01704cb8c7a9f Content-Type: text/plain; charset=ISO-8859-1 Hi all, I'm trying to implement a crypto system, and want to make sure I'm doing something portable, i.e. the ciphertexts I generate can be understood by any language with openssl functionality. I have a Ruby program that uses AES-256-CBC to encrypt some data, and I want to make sure I can generate the same ciphertext using Node. What mode of operation does crypto.createCipher('aes256') use? I assume it's not a bare AES function since it can encrypt arbitrary amounts of data, so it must be using a construction like CBC or CTR. Which one does it use, and can it be changed by the user? -- James Coglan http://jcoglan.com +44 (0) 7771512510 --047d7b6766dcd2e01704cb8c7a9f Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi all,

I'm trying to implement a crypto system, and= want to make sure I'm doing something portable, i.e. the ciphertexts I= generate can be understood by any language with openssl functionality. I h= ave a Ruby program that uses AES-256-CBC to encrypt some data, and I want t= o make sure I can generate the same ciphertext using Node.

What mode of operation does crypto.createCipher('ae= s256') use? I assume it's not a bare AES function since it can encr= ypt arbitrary amounts of data, so it must be using a construction like CBC = or CTR. Which one does it use, and can it be changed by the user?

--
James Coglan
http:/= /jcoglan.com
+44 (0) 7771512510
--047d7b6766dcd2e01704cb8c7a9f--