src/encoding/armor.js
function addheader(customComment) {
  let result = "";
  if (config.show_version) {
    result += "Version: " + config.versionstring + '\r\n';
  }
  if (config.show_comment) {
    result += "Comment: " + config.commentstring + '\r\n';
  }
  if (customComment) {
    result += "Comment: " + customComment + '\r\n';
  }
  result += '\r\n';
  return result;
}
function addheader(customComment) {
  let result = "";
  if (config.show_version) {
    result += "Version: " + config.versionstring + '\r\n';
  }
  if (config.show_comment) {
    result += "Comment: " + config.commentstring + '\r\n';
  }
  if (customComment) {
    result += "Comment: " + customComment + '\r\n';
  }
  result += '\r\n';
  return result;
}
function addheader ( customComment ) { let result = "" ; if ( config . show_version ) { result += "Version: " + config . versionstring + '\r\n' ; } if ( config . show_comment ) { result += "Comment: " + config . commentstring + '\r\n' ; } if ( customComment ) { result += "Comment: " + customComment + '\r\n' ; } result += '\r\n' ; return result ; }
Add additional information to the armor version of an OpenPGP binary
packet block.
@author  Alex
@version 2011-12-16
@param {String} customComment (optional) additional comment to add to the armored string
@returns {String} The header information
Add additional information to the armor version of an OpenPGP binary packet block .