Fork from hautelook/phpass since that repo was deleted.

Overview

This repository is a fork from the original hautelook/phpass which seems to have been deleted on 2021-09-09.

Openwall Phpass, modernized

This is Openwall's Phpass, based on the 0.3 release, but modernized slightly:

  • Namespaced
  • Composer support (Autoloading)
  • PHP 5 style
  • Unit Tested

The changes are minimal and only stylistic. The source code is in the public domain. We claim no ownership, but needed it for one of our projects, and wanted to make it available to other people as well.

Installation

Add this requirement to your composer.json file and run composer.phar install:

{
    "require": {
        "bordoni/phpass": "dev-main"
    }
}

Usage

The following example shows how to hash a password (to then store the hash in the database), and how to check whether a provided password is correct (hashes to the same value):

<?php

namespace Your\Namespace;

use Hautelook\Phpass\PasswordHash;

require_once(__DIR__ . "/vendor/autoload.php");
 
$passwordHasher = new PasswordHash(8,false);
 
$password = $passwordHasher->HashPassword('secret');
var_dump($password);
 
$passwordMatch = $passwordHasher->CheckPassword('secret', "$2a$08$0RK6Yw6j9kSIXrrEOc3dwuDPQuT78HgR0S3/ghOFDEpOGpOkARoSu");
var_dump($passwordMatch);
You might also like...
A fork of Laravel Valet to work in Linux.

Introduction Valet Linux is a Laravel development environment for Linux minimalists. No Vagrant, no /etc/hosts file. You can even share your sites pub

(Hard) Fork of WordPress Plugin Boilerplate, actively taking PRs and actively maintained. Following WordPress Coding Standards. With more features than the original.

Better WordPress Plugin Boilerplate This is a Hard Fork of the original WordPress Plugin Boilerplate. The Better WordPress Plugin Boilerplate actively

A fork of jasonwynn10ˋs VanillaEntityAI Plugin.

BIG UPDATE: MobPlugin 1.0.0-ALPHA. Based on the Altay AI. Coming soon! MobPlugin-PM A fork of jasonwynn10ˋs VanillaEntityAI Plugin. Similar to the Mob

A fork of Laravel Valet to work in Linux.

Introduction Valet Linux is a Laravel development environment for Linux minimalists. No Vagrant, no /etc/hosts file. You can even share your sites pub

Fork of Symfony Rate Limiter Component for Symfony 4

Rate Limiter Component Fork (Compatible with Symfony =4.4) The Rate Limiter component provides a Token Bucket implementation to rate limit input and

PHP implementation of JSON schema. Fork of the http://jsonschemaphpv.sourceforge.net/ project

JSON Schema for PHP A PHP Implementation for validating JSON Structures against a given Schema with support for Schemas of Draft-3 or Draft-4. Feature

The classic email sending library for PHP - this is my personal fork, please post issues on the upstream project
The classic email sending library for PHP - this is my personal fork, please post issues on the upstream project

PHPMailer - A full-featured email creation and transfer class for PHP Build status: Class Features Probably the world's most popular code for sending

AlphaholicCore is a fork of PocketMine-MP for 0.14.3
AlphaholicCore is a fork of PocketMine-MP for 0.14.3

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the F

Fork is an easy to use open source CMS using Symfony Components.
Fork is an easy to use open source CMS using Symfony Components.

Installation Make sure you have composer installed. Run composer create-project forkcms/forkcms . in your document root. Browse to your website Follow

Surf, an opinionated fork of Wave - the SAAS starter kit, with Laravel 9.
Surf, an opinionated fork of Wave - the SAAS starter kit, with Laravel 9.

Surf 🏄‍♀️ Introduction Surf, the opinionated Software as a Service Starter Kit that can help you build your next great idea 💰 . Surf is fork off Wav

Initiated by me, enhanced by us, created for us. This is the fork (public) version separated from my private diary repository.

diary public repository Initiated by me, enhanced by us, created for us. This is the fork (public) version separated from my private diary repository.

[READ-ONLY] Easy to use Caching library with support for multiple caching backends. This repo is a split of the main code that can be found in https://github.com/cakephp/cakephp

CakePHP Caching Library The Cache library provides a Cache service locator for interfacing with multiple caching backends using a simple to use interf

[READ-ONLY] A flexible, lightweight and powerful Object-Relational Mapper for PHP, implemented using the DataMapper pattern. This repo is a split of the main code that can be found in https://github.com/cakephp/cakephp

CakePHP ORM The CakePHP ORM provides a powerful and flexible way to work with relational databases. Using a datamapper pattern the ORM allows you to m

[READ-ONLY] Collection library in CakePHP. This repo is a split of the main code that can be found in https://github.com/cakephp/cakephp

CakePHP Collection Library The collection classes provide a set of tools to manipulate arrays or Traversable objects. If you have ever used underscore

Simple static Composer repository generator - For a full private Composer repo use Private Packagist

Satis Simple static Composer repository generator. Run from source Satis requires a recent PHP version, it does not run with unsupported PHP versions.

[READ-ONLY] The event dispatcher library for CakePHP. This repo is a split of the main code that can be found in https://github.com/cakephp/cakephp

CakePHP Event Library This library emulates several aspects of how events are triggered and managed in popular JavaScript libraries such as jQuery: An

[READ-ONLY] Validation library from CakePHP. This repo is a split of the main code that can be found in https://github.com/cakephp/cakephp

CakePHP Validation Library The validation library in CakePHP provides features to build validators that can validate arbitrary arrays of data with eas

[READ-ONLY] CakePHP Utility classes such as Inflector, Text, Hash, Security and Xml. This repo is a split of the main code that can be found in https://github.com/cakephp/cakephp

CakePHP Utility Classes This library provides a range of utility classes that are used throughout the CakePHP framework What's in the toolbox? Hash A

Repo do vídeo do youtube de Design Patterns - Decorator
Repo do vídeo do youtube de Design Patterns - Decorator

DesignPatternsPHP-Decorator Repo do vídeo do Youtube de Design Patterns - Decorator Link do vídeo Decorator em PHP 8 Imagem de exemplo Link do cadastr

Comments
  • Fix Implicit incompatible float issue in php-8.1

    Fix Implicit incompatible float issue in php-8.1

    Changed log

    • Using the intval to cast the type to integer and avoid getting the PHP Deprecated: Implicit conversion from float issue in php-8.1.

    Reproducing issue

    • Here are the steps to reproduce above issue:
    • Prepare the PHP 8.1 version.
    • Using the git command to clone the repository.
    • Using the composer install command to create the vendor directory and vendor/autoload.php file.
    • Create the hash.php to fill following codes:
    <?php
    error_reporting(E_ALL);
    
    require_once './vendor/autoload.php';
    
    use Hautelook\Phpass\PasswordHash;
    
    $passwordHasher = new PasswordHash(8, false);
    $password = $passwordHasher->HashPassword('secret');
    var_dump($password);
    
    • Running the above hash.php with php8.1.

    Expected

    string(60) "$2a$08$ZxqWDNbGqmpyMiQr8CFrFuNyJ9574VenWMnRtVHQFK9CtYNqP5hZq"
    

    Actual

    PHP Deprecated:  Implicit conversion from float 48.8 to int loses precision in /home/peterli/phpass/src/Hautelook/Phpass/PasswordHash.php on line 233
    string(60) "$2a$08$ZxqWDNbGqmpyMiQr8CFrFuNyJ9574VenWMnRtVHQFK9CtYNqP5hZq"
    
    opened by peter279k 2
  • Original hautelook/phpass is compromised

    Original hautelook/phpass is compromised

    Looks like since the original hautelook user deleted his account, a new user has since claimed the username and is hosting a compromised version of hautelook/phpass.

    Not sure whether this fork would be impacted at all, but I thought I'd let you know.

    Details here: https://twitter.com/s0md3v/status/1529005758540808192

    opened by danhanly 0
  • Add language argument to settings queries

    Add language argument to settings queries

    It would be nice to have a language argument on the various settings queries like allSettings, generalSettings, etc. instead of having to use translateString after receiving the strings.

    opened by lewebsimple 0
  • Updated to v1.1.0 from origin repo

    Updated to v1.1.0 from origin repo

    I just ran into the issue of the old repository being deleted. It seems that your fork was not quite up to date, so I have picked on of my previous installs and integrated the changes into your repository. This should satisfy the old composer requirement of "hautelook/phpass": "^1.1"

    See the still existing page on packagist.org: https://packagist.org/packages/hautelook/phpass

    opened by choules 0
Releases(0.3.6)
Owner
Gustavo Bordoni
Principal of Engineering @the-events-calendar and maintain a personal project called FakerPress.
Gustavo Bordoni
Das zentrale Repo für den Plugin Prototypen

=== Hello Dolly === Contributors: matt, wordpressdotorg Stable tag: 1.7.2 Tested up to: 5.5 Requires at least: 4.6 This is not just a plugin, it symb

Tilo 1 Oct 17, 2022
this repo is back end of project done with laravel

About Laravel Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experie

NIKA ZEREKIDZE 1 Oct 27, 2021
Repo event-management adalah tugas perkuliahan pemrogaraman lanjutan

About Laravel Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experie

Enisda Libra 2 Nov 30, 2021
Copy of hautelook/alice-bundle v2.9.0

AliceBundle A Symfony bundle to manage fixtures with nelmio/alice and fzaninotto/Faker. The database support is done in FidryAliceDataFixtures. Check

Global4Net Ltd. 3 Sep 10, 2021
Record created by, updated by and deleted by on Eloquent models automatically.

quarks/laravel-auditors Record created by, updated by and deleted by (if SoftDeletes added) on Eloquent models automatically. Installation composer re

Quarks 3 Jun 13, 2022
REDAXO, a PHP-based CMS since 2004. Both simple and flexible.

?? Deutsch Content Management since 2004. Both simple and flexible. REDAXO provides you an easy-to-learn website framework. It lets you create content

REDAXO CMS c/o Yakamara Media GmbH & Co. KG 302 Jan 8, 2023
A package for Laravel One Time Password (OTP) generator and validation without Eloquent Model, since it done by Cache.

Laravel OTP Introduction A package for Laravel One Time Password (OTP) generator and validation without Eloquent Model, since it done by Cache. The ca

Lim Teck Wei 52 Sep 6, 2022
Best FlexForm based content elements since 2012. With TCA mapping feature, simple backend view and much more features which makes it super easy to create own content element types.

DCE-Extension for TYPO3 What is DCE? DCE is an extension for TYPO3 CMS, which creates easily and fast dynamic content elements. Based on Extbase, Flui

Armin Vieweg 10 Nov 2, 2022
A php API documentation generator, fork of Sami

Doctum, a PHP API documentation generator. Fork of Sami Curious about what Doctum generates? Have a look at the MariaDB MySQL Kbs or Laravel documenta

Code LTS 203 Dec 21, 2022
Please see the Diglactic fork.

Update: 18 October 2020 There is now an official fork of Laravel Breadcrumbs: https://github.com/diglactic/laravel-breadcrumbs Blog post: https://news

Dave James Miller 2.4k Dec 27, 2022