Skip to main content
backdrop Documentation
Documentation and API source code for Backdrop CMS.
  • Welcome!
    • Login

Search for password

  1. Home »
  2. API reference »
  3. 1.x
Name Type Location Description
password.inc file core/includes/password.inc Secure password hashing functions for user authentication.
password.test file core/modules/simpletest/tests/password.test Provides unit tests for password.inc.
user_password function core/modules/user/user.module Generate a random alphanumeric password.
theme_password function core/includes/form.inc Returns HTML for a password form element.
_password_crypt function core/includes/password.inc Hash a password using a secure stretched hash.
_password_itoa64 function core/includes/password.inc Returns a string for mapping an int to the corresponding base 64 character.
password-hash.sh file core/scripts/password-hash.sh #!/usr/bin/env php <?php /** * Backdrop hash script - to generate a hash from a plaintext password * * Check for your PHP interpreter - on Windows you'll probably have to * replace line 1 with * #!c:/program files/php/php.exe * *…
user.password.inc file core/modules/user/user.password.inc Password callback file for the user module.
user_hash_password function core/includes/password.inc Hash a password using a secure hash.
user_check_password function core/includes/password.inc Check whether a plain text password matches a stored hashed password.
PasswordHashingTest class core/modules/simpletest/tests/password.test Unit tests for password hashing API.
UserPasswordResetTest class core/modules/user/tests/user_password_reset.test
FileTransfer::$password property core/includes/filetransfer/filetransfer.inc The password for this file transfer.
_password_base64_encode function core/includes/password.inc Encodes bytes into printable base 64 using the *nix standard from crypt().
_password_generate_salt function core/includes/password.inc Generates a random base 64-encoded salt prefixed with settings for the hash.
user_password_reset.test file core/modules/user/tests/user_password_reset.test Tests for resetting the password.
_password_get_count_log2 function core/includes/password.inc Parse the log2 iteration count from a stored hash or setting string.
user_password_reject_weak function core/modules/user/user.password.inc Get the password strength score required for an account.
password_confirm_validate function core/includes/form.inc Validates a password_confirm element.
user_form_process_password function core/modules/user/user.module Form element process handler for client-side password hide/show and strength.
_user_password_policy_help function core/modules/user/user.password.inc Generates help text for core password constraints on forms.
PasswordHashingTest::setUp function core/modules/simpletest/tests/password.test Sets up a Backdrop site for running functional and integration tests.
USER_PASSWORD_STRENGTH_WEAK constant core/modules/user/user.module Password strength levels: weak, fair, good and strong.
USER_PASSWORD_STRENGTH_FAIR constant core/modules/user/user.module
USER_PASSWORD_STRENGTH_GOOD constant core/modules/user/user.module
TestFileTransfer::$password property core/modules/simpletest/tests/filetransfer.test
FileTransferTest::$password property core/modules/simpletest/tests/filetransfer.test
UserPasswordResetTest::setUp function core/modules/user/tests/user_password_reset.test Sets up a Backdrop site for running functional and integration tests.
USER_PASSWORD_STRENGTH_STRONG constant core/modules/user/user.module
user_password_policy_validate function core/modules/user/user.module Validation callback for password constraints.
form_process_password_confirm function core/includes/form.inc Expand a password_confirm field into two text boxes.
PasswordHashingTest::$profile property core/modules/simpletest/tests/password.test The profile to install as a basis for testing.
USER_PASSWORD_STRENGTH_MODIFIER constant core/modules/user/user.module Password strength modifier to encourage longer passwords.
UserPasswordResetTest::$account property core/modules/user/tests/user_password_reset.test
user_form_test_current_password function core/modules/user/tests/user_form_test/user_form_test.module A test form for user_validate_current_pass().
UserPasswordResetTest::$profile property core/modules/user/tests/user_password_reset.test The profile to install as a basis for testing.
form_type_password_confirm_value function core/includes/form.inc Determines the value for a password_confirm form element.
_user_password_evaluate_strength function core/modules/user/user.password.inc Evaluate password strength Adapted from https://github.com/dropbox/zxcvbn.
_password_enforce_log2_boundaries function core/includes/password.inc Ensures that $count_log2 is within set bounds.
user_form_process_password_confirm function core/modules/user/user.module Form element process handler for client-side password validation.
UserPasswordResetTest::getResetURL function core/modules/user/tests/user_password_reset.test Retrieves password reset email and extracts the login link.
UserLoginTestCase::resetUserPassword function core/modules/user/tests/user.test Resets the user password and logs the user in.
user_form_test_current_password_page function core/modules/user/tests/user_form_test/user_form_test.module Menu callback for user_form_test_current_password/%user.
hook_user_password_reject_weak_alter function core/modules/user/user.api.php Alter the requirement for rejecting weak passwords.
PasswordHashingTest::testLongPassword function core/modules/simpletest/tests/password.test Verifies that passwords longer than 512 bytes are not hashed.
user_form_test_current_password_submit function core/modules/user/tests/user_form_test/user_form_test.module Submit function for the test form for user_validate_current_pass().
UserEditTestCase::testUserWith0Password function core/modules/user/tests/user.test Tests setting the password to "0".
PasswordHashingTest::testPasswordHashing function core/modules/simpletest/tests/password.test Test password hashing.
UserLoginTestCase::testPasswordRehashOnLogin function core/modules/user/tests/user.test Test that user password is re-hashed upon login after changing $count_log2.
UserPasswordResetTest::testUserPasswordReset function core/modules/user/tests/user_password_reset.test Tests password reset functionality.

Pages

  • 1
  • 2
  • next ›
  • last »

Directory

  • Getting started
    • Installing
    • Updates vs upgrades
    • Hosting/deploying
  • Upgrading from Drupal
    • Introduction
    • Upgrade overview
    • Converting Drupal code
  • User guide
    • Quick start guide
    • Using Backdrop
  • Add-On Documentation
  • Developing for Backdrop
    • Developing modules
    • Developing themes
    • Developing layouts
    • Using libraries
    • Local development
    • Writing secure code
    • Using JavaScript
  • Contributors guide
    • Contribute to Backdrop core
      • How to use the core issue queue
      • Adding labels to issues
      • Adding milestones to issues
    • Contribute Backdrop add-ons
    • Contribute to documentation
  • Developer API
    • Topics
    • Functions
    • Classes
    • Files
    • Globals
    • Icon API
    • Database API
    • Theme functions
    • Form API reference
  • Appendix/reference
    • Change records
    • Glossary
    • Coding & documentation standards
    • Contrib permissions policy

Stay connected

Sign up for our newsletter

Powered by Backdrop CMS

Footer Menu

  • documentation
  • localization
  • events
  • forum
  • backdropcms.org