snailweb/php-hasher

There is no license information available for the latest version (1.0.2) of this package.

A simple PHP Hasher

Installs: 10

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/snailweb/php-hasher

1.0.2 2019-03-06 19:05 UTC

This package is auto-updated.

Last update: 2025-11-09 17:55:09 UTC


README

A simple PHP Hasher to ensure data validity received from a client.

Usage

Instantiation

$hasher = new Snailweb\Utils\Hasher('secret key', 'secret prefix', 'secret suffix', 'sha256');

Hash data to send

$hasher->hash('my data');

Check data validity of received data

$hasher->checkSum($receivedHash, $receivedData);