code: function (user, password, salt) {
    var inner = md5(password + user)
    var outer = md5(Buffer.concat([Buffer.from(inner), salt]))
    return 'md5' + outer
  }
docs: See AuthenticationMD5Password at https://www.postgresql.org/docs/current/static/protocol-flow.html