title: Java's RSA/ECB/OAEPWithSHA-256AndMGF1Padding equivalent in Node.js
body: <p>The data decryption will run in JAVA using <code>RSA/ECB/OAEPWithSHA-256AndMGF1Padding</code> algorithm. So I have to encrypt the data with public key using the algorithm equivalent to <code>RSA/ECB/OAEPWithSHA-256AndMGF1Padding</code> in <code>node.js</code>. </p>
  
  <p>I tried with <code>crypto.publicEncrypt(key, buffer)</code> which uses crypto.constants.RSA_PKCS1_OAEP_PADDING which is not similar to the above algorithm.
  So I need algorithm equivalent to "RSA/ECB/OAEPWithSHA-256AndMGF1Padding" or how to achieve the same in node.js</p>