https://github.com/reshadman/php-bijective-shortener
A Bijectiive Shortener based on longening the base of the given number
https://github.com/reshadman/php-bijective-shortener
Last synced: 5 months ago
JSON representation
A Bijectiive Shortener based on longening the base of the given number
- Host: GitHub
- URL: https://github.com/reshadman/php-bijective-shortener
- Owner: reshadman
- License: gpl-2.0
- Created: 2015-03-15T08:45:59.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-03-15T09:48:00.000Z (over 11 years ago)
- Last Synced: 2024-08-09T08:35:07.520Z (almost 2 years ago)
- Language: PHP
- Size: 160 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Php Bijective Shortener
This package is a bijective shortener which shortens your unique integer identifier(like a mysql auto increment key) to a unique short string, the strategy simply makes a number with a longer base.
### Usage
You can set the characters which you want to be included into the shortened string, by default a random string is set. You should note that this is not an encrypting solution it's just an encoding solution like base_64 but in a bigger base, but by making a random sort of allowed characters you can gaurantee that it is impossible to guess a long number given a shortened string.
```php