https://github.com/merkdev/simple-php-crypt
Converts an integer to YouTube style (like) crypted string. Simple crypt/hash class for PHP
https://github.com/merkdev/simple-php-crypt
cryption hash id php youtube
Last synced: 8 months ago
JSON representation
Converts an integer to YouTube style (like) crypted string. Simple crypt/hash class for PHP
- Host: GitHub
- URL: https://github.com/merkdev/simple-php-crypt
- Owner: merkdev
- License: mit
- Created: 2019-01-12T15:38:30.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-07-11T15:20:09.000Z (over 6 years ago)
- Last Synced: 2025-06-04T20:57:15.316Z (8 months ago)
- Topics: cryption, hash, id, php, youtube
- Language: PHP
- Size: 14.6 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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](http://php.net/manual/en/book.bc.php)
## Usage
### Hash
```php
MerkDev\Crypt::hash(9919)
```
### UnHash
```php
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](http://localhost:4321)
## Install it via Composer
`composer require merkdev/simple-php-crypt`