Plugin Directory

Changeset 2942065

Timestamp:
07/23/2023 11:19:01 AM (13 months ago)
Author:
ayeshrajans
Message:

Add v3.0.0, updated

Location:
password-hash
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • password-hash/tags/3.0/readme.txt

    r2942064 r2942065  
    2525to verify the passwords directly from the database too. Since WordPress has its own password hashing algorithm, we decided to make this plugin to address that problem.
    2626With this plugin, passwords generated by both WordPress and other custom applications now use the PHP's default `password_hash()` functions without compromising any of the applications' security.
     27
     28
    2729
    2830== Installation ==
  • password-hash/tags/3.0/src/PasswordHash.php

    r2942064 r2942065  
    6969     *
    7070     */
    71     public function checkPassword($password, $hash, $user_id = ''): bool {
     71    public function checkPassword( $hash, $user_id = ''): bool {
    7272        // Check if the hash uses Password API.
    7373        $info = password_get_info($hash);
     
    8686
    8787    /**
    88      * Hash password using @see password_hash() function.
     88     * Hash password using @
    8989     *
    90      * @param string $password Plaintext password
    9190     * @return false|string
     91
     92
    9293     */
    93     public function getHash($password) {
     94    public function getHash($password) {
    9495        return password_hash($password, $this->algorithm, $this->algorithm_options);
    9596    }
    9697
    9798    /**
    98      * Sets password hash taken from @see wp_hash_password().
     99     * Sets password hash taken from @.
    99100     *
    100      * @param string $password password in plain text.
    101101     * @param int $user_id User ID of the user.
    102102     * @return bool|string
     103
     104
    103105     */
    104     public function updateHash($password, $user_id) {
     106    public function updateHash( $user_id) {
    105107        $hash = $this->getHash($password);
    106108        $fields = [ 'user_pass' => &$hash, 'user_activation_key' => '' ];
  • password-hash/tags/3.0/wp-php-password-hash.php

    r2942064 r2942065  
    33 * Plugin Name: PHP Native Password Hash
    44 * Version:     3.0
    5  * Description: Swaps out WordPress's password hashing mechanism with PHP 5.5's `password_hash()` functions set, and automatically rehashes the existing passwords on users next successful login. Provides safety against dictionary attacks, time-attacks, brute-force attacks.
     5 * Description: Swaps out WordPress's password hashing mechanism with PHP 5.5's `password_hash()` functions set, and automatically rehashes the existing passwords on users next successful login. Provides safety against dictionary attacks, time-attacks, brute-force attacks.
    66 * Licence:     GPLv2 or later
    77 * Author:      Ayesh Karunaratne
  • password-hash/trunk/readme.txt

    r2942064 r2942065  
    2525to verify the passwords directly from the database too. Since WordPress has its own password hashing algorithm, we decided to make this plugin to address that problem.
    2626With this plugin, passwords generated by both WordPress and other custom applications now use the PHP's default `password_hash()` functions without compromising any of the applications' security.
     27
     28
    2729
    2830== Installation ==
  • password-hash/trunk/src/PasswordHash.php

    r2942064 r2942065  
    6969     *
    7070     */
    71     public function checkPassword($password, $hash, $user_id = ''): bool {
     71    public function checkPassword( $hash, $user_id = ''): bool {
    7272        // Check if the hash uses Password API.
    7373        $info = password_get_info($hash);
     
    8686
    8787    /**
    88      * Hash password using @see password_hash() function.
     88     * Hash password using @
    8989     *
    90      * @param string $password Plaintext password
    9190     * @return false|string
     91
     92
    9293     */
    93     public function getHash($password) {
     94    public function getHash($password) {
    9495        return password_hash($password, $this->algorithm, $this->algorithm_options);
    9596    }
    9697
    9798    /**
    98      * Sets password hash taken from @see wp_hash_password().
     99     * Sets password hash taken from @.
    99100     *
    100      * @param string $password password in plain text.
    101101     * @param int $user_id User ID of the user.
    102102     * @return bool|string
     103
     104
    103105     */
    104     public function updateHash($password, $user_id) {
     106    public function updateHash( $user_id) {
    105107        $hash = $this->getHash($password);
    106108        $fields = [ 'user_pass' => &$hash, 'user_activation_key' => '' ];
  • password-hash/trunk/wp-php-password-hash.php

    r2942064 r2942065  
    33 * Plugin Name: PHP Native Password Hash
    44 * Version:     3.0
    5  * Description: Swaps out WordPress's password hashing mechanism with PHP 5.5's `password_hash()` functions set, and automatically rehashes the existing passwords on users next successful login. Provides safety against dictionary attacks, time-attacks, brute-force attacks.
     5 * Description: Swaps out WordPress's password hashing mechanism with PHP 5.5's `password_hash()` functions set, and automatically rehashes the existing passwords on users next successful login. Provides safety against dictionary attacks, time-attacks, brute-force attacks.
    66 * Licence:     GPLv2 or later
    77 * Author:      Ayesh Karunaratne
Note: See TracChangeset for help on using the changeset viewer.