On Tue, Sep 25, 2012 at 5:12 PM, Honigbaum <[email protected]> wrote:
> Sorry, I forgot. Tried something like this https://gist.github.com/3782508
Quoted here for posterity:
var crypto = require("crypto");
var inputVector = new Buffer("c1234567-zipl-03");
var secretKeyHash = new Buffer("GeN8IfCrdxKxMxFA");
var cipher = crypto.createCipheriv('AES-128-CBC', secretKeyHash, inputVector);
cipher.update("Test", 'binary', 'binary');
var encryptedHexNumber = cipher.final('hex');
return 1 + encryptedHexNumber
Looks like encryption works fine but the `return 1 +
encryptedHexNumber` statement is kind of wonky. What do you expect
that to do?
--
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en