brandonkahre/miva-password

This package is abandoned and no longer maintained. No replacement package was suggested.

Generate and verify Miva Merchant 5 PR8-7 compatible password hashes.

1.0.0 2024-12-07 17:20 UTC

This package is auto-updated.

Last update: 2024-12-07 17:21:34 UTC


README

Tests Latest Stable Version

Miva_Password is a very simple library that can be used to generate and verify Miva Merchant 5 PR8-7 compatible password hashes using PHP.

⚠ Unmaintained Library

This library was written in 2013 and then completely abandoned. The library was updated in 2024 just out of a combination of a random itch and boredom, do not take that as a sign of an active library. Nobody uses this in production.

Installation

Installation can be done via Composer:

composer require brandonkahre/miva-password

Basic Usage

<?php

use MivaPassword\Password as MivaPassword;

// generate a random password
$password = MivaPassword::generate(10);

// generate a hash for a password
$hash = MivaPassword::create_hash($password);

// verify that the password matches that hash
if (MivaPassword::verify($hash, $password)) {
    echo 'All is right in the world';
}

License

MivaPassword is licensed under the BSD 2-Clause License - see the LICENSE file for details.