Password confirmation before submitting a form
You might want to use hook_form_FORM_ID_alter(). Then you can create a valitate function, that checks if the password is correct.

function mymodule_form_article_node_form_alter(&amp;$form, &amp;$form_state, $form_id) {
  // There will already be some validate handlers added so you need to add to the
  // array rather than overwrite it.
  $form['#validate'][] = 'mymodule_article_form_validate';
}

function mymodule_article_form_validate($form, &amp;$form_state) {
  //This is just a dummy example that will not 100% work, so you need the get the correct information.
  $password = 'TesT128#';
  if ($form_state['values']['password'] != $password) {
    form_set_error('password', t('You have entered the wrong password'));
  }
}