Skip to content

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

License

Notifications You must be signed in to change notification settings

merkdev/Simple-PHP-Crypt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple PHP Crypt

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages