merkdev/simple-php-crypt

Converts an integer to YouTube style (like) crypted string. Simple crypt class for PHP

Installs: 415

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 2

Forks: 0

pkg:composer/merkdev/simple-php-crypt

v1.0.4 2019-07-11 13:22 UTC

This package is not auto-updated.

Last update: 2025-12-06 15:57:00 UTC


README

This tiny PHP class helps you to generating YouTube style hash from an Integer.

Note : This script requires BC-Math library BCMath Arbitrary Precision Mathematics

Usage

Hash

MerkDev\Crypt::hash(9919)

UnHash

MerkDev\Crypt::unhash("CKAr6PzmUP")

Example

  • Clone this Repo : https://github.com/merkdev/simple-php-crypt
  • Run a local server : php -S localhost:4321 example/index.php
  • Open it on browser : http://localhost:4321

Install it via Composer

composer require merkdev/simple-php-crypt