lib/rsa.js
function RSAGetPublicString() {
  var exportObj = {n: this.n.toString(16), e: this.e.toString(16)};
  if (exportObj.n.length % 2 == 1) {
    exportObj.n = '0' + exportObj.n; // pad them with 0
  }
  return JSON.stringify(exportObj);
}
function RSAGetPublicString() {
  var exportObj = {n: this.n.toString(16), e: this.e.toString(16)};
  if (exportObj.n.length % 2 == 1) {
    exportObj.n = '0' + exportObj.n; // pad them with 0
  }
  return JSON.stringify(exportObj);
}
function RSAGetPublicString ( ) { var exportObj = { n : this . n . toString ( 16 ) , e : this . e . toString ( 16 ) } ; if ( exportObj . n . length % 2 == 1 ) { exportObj . n = '0' + exportObj . n ; // pad them with 0 } return JSON . stringify ( exportObj ) ; }
return modulus and public exponent as string
return modulus and public exponent as string