PHPackages                             brentkozjak/laravel-hash-identify - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Security](/categories/security)
4. /
5. brentkozjak/laravel-hash-identify

ActiveLibrary[Security](/categories/security)

brentkozjak/laravel-hash-identify
=================================

Laravel package to easily identify possible algorithm(s) of a hash

1.0.0(7y ago)7161GPL-3.0PHPPHP ^7.0

Since Aug 13Pushed 7y ago1 watchersCompare

[ Source](https://github.com/brentkozjak/laravel-hash-identify)[ Packagist](https://packagist.org/packages/brentkozjak/laravel-hash-identify)[ Docs](https://github.com/brentkozjak/laravel-hash-identify)[ RSS](/packages/brentkozjak-laravel-hash-identify/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (4)Versions (3)Used By (0)

A Laravel package to easily determine the possible hash algorithm(s) for a given string
=======================================================================================

[](#a-laravel-package-to-easily-determine-the-possible-hash-algorithms-for-a-given-string)

This package is largely based off the excellent Python project [hashID](https://github.com/psypanda/hashID) which is included in Kali Linux by default.

In addition to supporting over 220 hashing algorithms, this package can also include corresponding hashcat mode and JohnTheRipper format.

This package extends Laravel's default `HashManager` class, so you can easily use it to both generate and identify hashes using the `Hash` facade.

Requirements
------------

[](#requirements)

PHP 7 and Laravel 5.5 or higher.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require "brentkozjak/laravel-hash-identify":"~1.0.0"

```

The package and the facade will be autodiscovered by Laravel.

Usage
-----

[](#usage)

This package extends Laravel's `HashManager` class, allowing you to use the default `Hash` facade like so:

```
// Create a hash using Laravel's default Hash::make() method.
$hash = \Hash::make('example');

// Identify the possible hashing algorithm(s) used to create $hash
$hash_modes = \Hash::identify($hash);

// $hash_modes is an instance of a standard Laravel Collection
$hash_modes->pluck('name');
$hash_modes->toArray();
...
```

A note on performance
---------------------

[](#a-note-on-performance)

This package unavoidably uses a lot of `preg_match` regular expressions to match a hashing algorithm. While I have found performance to be quite acceptable, I am of course open to further optimisations.

Todo
----

[](#todo)

Tests!

License
-------

[](#license)

This project is open-sourced software licensed under the [GNU GENERAL PUBLIC LICENSE](https://www.gnu.org/licenses/gpl-3.0.en.html)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

2830d ago

Major Versions

0.0.1 → 1.0.02018-08-13

### Community

Maintainers

![](https://www.gravatar.com/avatar/0c046a0ea342c78059adc806395d1cacd3cb892c904f1daac369e6438dd5134b?d=identicon)[brentkozjak](/maintainers/brentkozjak)

---

Tags

hashinghashAlgorithm

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/brentkozjak-laravel-hash-identify/health.svg)

```
[![Health](https://phpackages.com/badges/brentkozjak-laravel-hash-identify/health.svg)](https://phpackages.com/packages/brentkozjak-laravel-hash-identify)
```

###  Alternatives

[lastguest/murmurhash

MurmurHash3 Hash

12910.2M52](/packages/lastguest-murmurhash)[passwordlib/passwordlib

A Password Hashing Library

377220.6k6](/packages/passwordlib-passwordlib)[mikemclin/laravel-wp-password

Laravel package that checks and creates WordPress password hashes

863.4M2](/packages/mikemclin-laravel-wp-password)[paragonie/password_lock

Wraps Bcrypt-SHA2 in Authenticated Encryption

19348.7k1](/packages/paragonie-password-lock)[ammardev/laravel-wp-hash-driver

Supports Wordpress passwords hashing and checking in Laravel's Hash facade.

169.3k](/packages/ammardev-laravel-wp-hash-driver)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
