Download the PHP package blar/hash without Composer

On this page you can find all versions of the php package blar/hash. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package hash

License Latest Stable Version Build Status Coverage Status Dependency Status Flattr

Hash

Erstellen und Vergleichen von Hashes.

Beispiele

MD5

$generator = new HashGenerator('MD5');
$hash = $generator->hash('foobar');

MD5 mit mehreren Teilen

$generator = new HashGenerator('MD5');
$generator->push('foo');
$generator->push('bar');
echo $generator->getHash();

MD5 von einer Datei

$generator = new HashGenerator('MD5');
$generator->pushFile('foobar.txt');
echo $generator->getHash();

SHA-1

$generator = new HashGenerator('SHA1');
$generator->push('foobar');
echo $generator->getHash();

SHA-1 mit HMAC

$generator = new HmacHashGenerator('SHA1', '1337');
$generator->push('foobar');
echo $generator->getHash();

SHA-1 mit HMAC und mehreren Teilen

$generator = new HmacHashGenerator('SHA1', '1337');
$generator->push('foo');
$generator->push('bar');
echo $generator->getHash();;

Unterstützte Hash-Algorithmen abrufen

echo implode(', ', Hash::getAlgos());

Je nach PHP-Version und Betriebsystem können andere Hash-Algorithmen verfügbar sein. Hier eine beispielhafte Ausgabe:

adler32, crc32, crc32b, fnv132, fnv164, fnv1a32, fnv1a64, gost, gost-crypto,
haval128,3, haval128,4, haval128,5, haval160,3, haval160,4, haval160,5,
haval192,3, haval192,4, haval192,5, haval224,3, haval224,4, haval224,5,
haval256,3, haval256,4, haval256,5, joaat, md2, md4, md5,
ripemd128, ripemd160, ripemd256, ripemd320,
sha1, sha224, sha256, sha384, sha512, snefru, snefru256,
tiger128,3, tiger128,4, tiger160,3, tiger160,4, tiger192,3, tiger192,4, whirlpool

Installation

Abhängigkeiten

Abhängigkeiten von blar/hash auf gemnasium anzeigen

Installation per Composer

$ composer require blar/hash

Installation per Git

$ git clone https://github.com/blar/hash.git

All versions of hash with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package blar/hash contains the following files

Loading the files please wait ....