2017 © Pedro Peláez
 

library hashapass

Hashapass is a library that generates unique and secure passwords, which are a hashed combination of a master password and a variable parameter, using Base64 and HMAC-SHA1 encoding.

image

aalaap/hashapass

Hashapass is a library that generates unique and secure passwords, which are a hashed combination of a master password and a variable parameter, using Base64 and HMAC-SHA1 encoding.

  • Thursday, June 2, 2016
  • by aalaap
  • Repository
  • 1 Watchers
  • 0 Stars
  • 26 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

Hashapass

Build Status, (*1)

Join the chat at https://gitter.im/aalaap/Hashapass, (*2)

Hashapass is a library that generates unique and secure passwords, which are a hashed combination of a master password and a variable parameter., (*3)

The algorithm is based on a Base64 encode of the HMAC_SHA1 of the provided master password and parameter values., (*4)

Simple Usage

use Aalaap\Hashapass\Hashapass;

$hashapass = new Hashapass();
echo $hashapass->generate('master', 'parameter');

Motivation

I use Hashapass extensively to generate unique passwords for all my accounts. I need it at different places, so I've made a JavaScript bookmarklet, a Windows app and, now, a PHP package., (*5)

Installation

Install using Composer., (*6)

composer require aalaap/Hashapass

Advanced Usage

The package has one main method:, (*7)

$hashapass->generate($master_password, $parameter);

By default, it will return a Hashapass-compatible 8-character password. To get a more secure 16-character password (or longer), simply specify the length:, (*8)

$hashapass->generate($master_password, $parameter, 16);

Note that the maximum possible length is 40, as the algoritm is limited to the length of the generated HMAC_SHA1., (*9)

Tests

Hashapass has been tested in PHP 5.4 through PHP 7 and HHVM. If you want to run the tests, run:, (*10)

vendor/bin/phpunit

Contributors

Fork it, work on it, send a PR., (*11)

License

Hashapass is licensed under WTFPL. Do whatever you want with it., (*12)

The Versions

02/06 2016

1.0.6

1.0.6.0

Hashapass is a library that generates unique and secure passwords, which are a hashed combination of a master password and a variable parameter, using Base64 and HMAC-SHA1 encoding.

  Sources   Download

WTFPL

The Development Requires

by Aalaap Ghag

hashapass

02/06 2016

1.0.5

1.0.5.0

Hashapass is a library that generates unique and secure passwords, which are a hashed combination of a master password and a variable parameter, using Base64 and HMAC-SHA1 encoding.

  Sources   Download

WTFPL

The Development Requires

by Aalaap Ghag

hashapass

02/06 2016

1.0.4

1.0.4.0

Hashapass is a library that generates unique and secure passwords, which are a hashed combination of a master password and a variable parameter, using Base64 and HMAC-SHA1 encoding.

  Sources   Download

WTFPL

The Development Requires

by Aalaap Ghag

hashapass

02/06 2016

dev-master

9999999-dev

A hashed password generator, returning passwords identical to Hashapass.com.

  Sources   Download

WTFPL

The Development Requires

by Aalaap Ghag

hashapass

02/06 2016

1.0.3

1.0.3.0

A hashed password generator, returning passwords identical to Hashapass.com.

  Sources   Download

WTFPL

The Development Requires

by Aalaap Ghag

hashapass

02/06 2016

1.0.2

1.0.2.0

A hashed password generator, returning passwords identical to Hashapass.com.

  Sources   Download

WTFPL

The Development Requires

by Aalaap Ghag

hashapass

02/06 2016

1.0.1

1.0.1.0

A hashed password generator, returning passwords identical to Hashapass.com.

  Sources   Download

WTFPL

The Development Requires

by Aalaap Ghag

hashapass

02/06 2016

1.0

1.0.0.0

A hashed password generator, returning passwords identical to Hashapass.com.

  Sources   Download

WTFPL

The Development Requires

by Aalaap Ghag

hashapass