Skip to main content
Silkscreen CMS API
  • Login
  • Home

Search for password

You are here

  1. Home »
  2. API reference »
  3. 1.20.x
Name Type Location Description
password.inc file includes/password.inc Secure password hashing functions for user authentication.
password.test file modules/simpletest/tests/password.test Provides unit tests for password.inc.
user_password function modules/user/user.module Generate a random alphanumeric password.
theme_password function includes/form.inc Returns HTML for a password form element.
_password_crypt function includes/password.inc Hash a password using a secure stretched hash.
password-hash.sh file 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 * *…
_password_itoa64 function includes/password.inc Returns a string for mapping an int to the corresponding base 64 character.
user.password.inc file modules/user/user.password.inc Password callback file for the user module.
user_hash_password function includes/password.inc Hash a password using a secure hash.
user_check_password function includes/password.inc Check whether a plain text password matches a stored hashed password.
PasswordHashingTest class modules/simpletest/tests/password.test Unit tests for password hashing API.
UserPasswordResetTest class modules/user/tests/user_password_reset.test
_password_generate_salt function includes/password.inc Generates a random base 64-encoded salt prefixed with settings for the hash.
FileTransfer::$password property includes/filetransfer/filetransfer.inc
_password_base64_encode function includes/password.inc Encodes bytes into printable base 64 using the *nix standard from crypt().
_password_get_count_log2 function includes/password.inc Parse the log2 iteration count from a stored hash or setting string.
user_password_reset.test file modules/user/tests/user_password_reset.test Tests for resetting the password.
user_password_reject_weak function modules/user/user.password.inc Get the password strength score required for an account.
password_confirm_validate function includes/form.inc Validates a password_confirm element.
FileTranferTest::$password property modules/simpletest/tests/filetransfer.test
_user_password_policy_help function modules/user/user.password.inc Generates help text for core password constraints on forms.
user_form_process_password function modules/user/user.module Form element process handler for client-side password hide/show and strength.
PasswordHashingTest::setUp function modules/simpletest/tests/password.test Sets up a Backdrop site for running functional and integration tests.
USER_PASSWORD_STRENGTH_WEAK constant modules/user/user.module Password strength levels: weak, fair, good and strong.
USER_PASSWORD_STRENGTH_FAIR constant modules/user/user.module
USER_PASSWORD_STRENGTH_GOOD constant modules/user/user.module
TestFileTransfer::$password property modules/simpletest/tests/filetransfer.test
UserPasswordResetTest::setUp function modules/user/tests/user_password_reset.test Sets up a Backdrop site for running functional and integration tests.
USER_PASSWORD_STRENGTH_STRONG constant modules/user/user.module
user_password_policy_validate function modules/user/user.module Validation callback for password constraints.
PasswordHashingTest::$profile property modules/simpletest/tests/password.test The profile to install as a basis for testing.
form_process_password_confirm function includes/form.inc Expand a password_confirm field into two text boxes.
UserPasswordResetTest::$profile property modules/user/tests/user_password_reset.test The profile to install as a basis for testing.
USER_PASSWORD_STRENGTH_MODIFIER constant modules/user/user.module Password strength modifier to encourage longer passwords.
user_form_test_current_password function modules/user/tests/user_form_test/user_form_test.module A test form for user_validate_current_pass().
_user_password_evaluate_strength function modules/user/user.password.inc Evaluate password strength Adapted from https://github.com/dropbox/zxcvbn.
form_type_password_confirm_value function includes/form.inc Determines the value for a password_confirm form element.
_password_enforce_log2_boundaries function includes/password.inc Ensures that $count_log2 is within set bounds.
user_form_process_password_confirm function modules/user/user.module Form element process handler for client-side password validation.
UserPasswordResetTest::getResetURL function modules/user/tests/user_password_reset.test Retrieves password reset email and extracts the login link.
hook_user_password_reject_weak_alter function modules/user/user.api.php Alter the requirement for rejecting weak passwords.
PasswordHashingTest::testLongPassword function modules/simpletest/tests/password.test Verifies that passwords longer than 512 bytes are not hashed.
user_form_test_current_password_submit function modules/user/tests/user_form_test/user_form_test.module Submit function for the test form for user_validate_current_pass().
UserEditTestCase::testUserWith0Password function modules/user/tests/user.test Tests setting the password to "0".
PasswordHashingTest::testPasswordHashing function modules/simpletest/tests/password.test Test password hashing.
UserPasswordResetTest::testUserPasswordReset function modules/user/tests/user_password_reset.test Tests password reset functionality.
UserCreateTestCase::testUserWithWeakPassword function modules/user/tests/user.test Tests setting a weak password.
UserLoginTestCase::testPasswordRehashOnLogin function modules/user/tests/user.test Test that user password is re-hashed upon login after changing $count_log2.
UserPasswordResetTest::testResetImpersonation function modules/user/tests/user_password_reset.test Make sure that users cannot forge password reset URLs of other users.
UserPasswordResetTest::testUserResetPasswordTextboxFilled function modules/user/tests/user_password_reset.test Prefill the text box on incorrect login via link to password reset page.

Search 1.20.x

Partial match search is supported

API Navigation

  • 1.20.x
  • Topics
  • Classes
  • Functions
  • Files
  • Constants
  • Globals
  • Deprecated
Powered by Silkscreen CMS