Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

User hash

Security covered Maintenance fixes only 15 sites

This module generates a unique, individual hash for each user, which can be used for lightweight identification or as an API key for accessing content without revealing login credentials. It offers configuration options for hash generation and can be integrated with REST APIs for authentication.

The User hash module allows you to create an individual hash for each user.

Use case

You can use the hash as a light weight user identification where you do not want to use the Drupal login credentials, e.g. as an individual API Key for reading insensitive content.

The module does not implement such functionality. However, the Drupal 7 version implements a function to compare hashes preventing from timing attacks.

Settings

You can configure which PHP hash algorithm to use and how many characters for the random string when generating hashes.

Generation

The user hash module adds update options on the user list page for generating and deleting user hashes.

A new user hash will replace an existing one. No need to delete the old one first.

Display

The user hash is displayed read-only on the user edit form (only Drupal 7) and on the user profile if the user has 'administer user' permission or if it is his own account.

The display and position of the hash can be configured if the Field UI module is enabled.

In Drupal 8 you can display the user hash on the user list page by editing the corresponding view.

Authentication Provider

In Drupal 8 you can use the hash for REST API authentication.

Drupal 10–11 PHP >=8.1

Ask your assistant about User hash

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

  • user Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
6
Tracked since
Feb 2023
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Release Timeline

Releases

Version Type Core PHP Release date
2.1.0 Stable 10–11 PHP >=8.1 Dec 13, 2023
2.1.0-beta1 Pre-release 10–11 PHP >=8.1 Nov 20, 2023
2.1.x-dev Dev 10–11 PHP >=8.1 Oct 12, 2023
2.0.5 Stable 9–10 Sep 28, 2023
2.0.4 Stable 9–10 Mar 14, 2023
2.0.3 Stable 9–10 Feb 3, 2023