SHAShort is the first and only URL shortening service to only use cryptographically secure hashing functions in the process of shortening, thereby making it computationally infeasible to reverse-engineer the original URL from the shortened link. That isn't something you should care about, but I did it anyway.
Run shards build --release
, create a database shashort.sqlite3
with the table CREATE TABLE urlmap (url string unique on conflict replace, hash string);
adjust the port in .env
if you want and run bin/shashort
.
Just navigate to http://localhost:8001 (by default) to use.
The main codebase is located on https://git.15318.de. You can log in using GitLab or GitHub there.
- Fork it (https://git.15318.de/deing/SHAShort/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
- deing - creator and "maintainer"