JavaScript Different results when encrypting with Bouncy Castle and Node.js expecting different results when

I'm trying to perform the same encryption operation in Java (using Bouncy Castle) and Node.js, however I receive different results in each language. Below are my attempted implementations - can anyone spot where I've gone wrong?

Java Code

//Java code:
import org.bouncycastle.crypto.engines.DESedeEngine;
import org.bouncycastle.crypto.params.KeyParameter;
import org.bouncycastle.crypto.*;
//...
String inputString = "24778721";  //8 bytes
String keyString = "lf9aodkflaen7;ad";
BufferedBlockCipher cipher = new BufferedBlockCipher(new DESedeEngine());
byte[] key = keyString.getBytes();
byte[] input = inputString.getBytes();
cipher.init(isEncode, new KeyParameter(key));       

byte[] result = new byte[cipher.getOutputSize(input.length)];       
int outputLen = cipher.processBytes(input, 0, input.length, result, 0);
cipher.doFinal(result, outputLen);

//result is "65dcbb2e08e6d66e"

JavaScript Code

//node.js
var crypto = require('crypto');
var key = "lf9aodkflaen7;ad";
var data = "24778721";
var keybuf = new Buffer(key);
var databuf = new Buffer(data);

var cipher = crypto.createCipher('des-ede', keybuf);
cipher.update(databuf);
var result = cipher.final();

// result is "bf d2 cc 51 c5 e9 ef 38"

Alternative using createCipheriv function:

var cipher = crypto.createCipheriv('des-ede', keybuf.toString("binary"), '');
cipher.update(databuf);
var result = cipher.final();

// result is  "7a 24 bf 56 04 18 e3 6a"
Answer:1

Here's a solution i found on stackoverflow this solution works for me except that when the contents of the div is overflown the contents do not scroll alongside the arrow keys, like scroll seems to ...

Here's a solution i found on stackoverflow this solution works for me except that when the contents of the div is overflown the contents do not scroll alongside the arrow keys, like scroll seems to ...

  1. using arrow keys in excel
  2. using arrow keys in javascript
  3. using arrow keys in python
  4. using arrow keys in java
  5. using arrow keys in excel not working
  6. using arrow keys to navigate excel
  7. using arrow keys to move between cells in excel
  8. using arrow keys to move objects in visio
  9. using arrow keys in processing
  10. using arrow keys in c++
  11. using arrow keys in illustrator
  12. using arrow keys to scroll in excel
  13. using arrow keys in vim
  14. using arrow keys in selenium webdriver
  15. using arrow keys as mouse
  16. using arrow keys in scratch
  17. using arrow keys in html
  18. using arrow keys for gaming
  19. using arrow keys in vi editor
  20. using arrow keys in vba

I am following this example for making a custom editable <span> using ngModelController: https://docs.angularjs.org/api/ng/type/ngModel.NgModelController#example What I want to do now is to be ...

I am following this example for making a custom editable <span> using ngModelController: https://docs.angularjs.org/api/ng/type/ngModel.NgModelController#example What I want to do now is to be ...

I have made a dropdown that appears on click on a button. Pretty simple, except for how I have to click twice to get the js function to execute. After I click it the first, it appears and disappears ...

I have made a dropdown that appears on click on a button. Pretty simple, except for how I have to click twice to get the js function to execute. After I click it the first, it appears and disappears ...

  1. having to click twice on everything
  2. having to click mouse twice

My application returns the relative positions between two lines and I want draw this lines with Javascript. The line is defined with a director vector, a point and is three dimension. Is there any ...

My application returns the relative positions between two lines and I want draw this lines with Javascript. The line is defined with a director vector, a point and is three dimension. Is there any ...

  1. drawing with elements of art
  2. drawing elements and principles
  3. drawing with elements and principles of art
  4. drawing that have elements of art
  5. drawing in elements