RubyGems.org

id_encoder

0.0.1

A bit-shuffling approach is used to avoid generating consecutive, predictable URLs. However, the algorithm is deterministic and will guarantee that no collisions will occur. The gem supports both encoding and decoding of URLs. The min_length parameter allows you to pad the URL if you want it to be a specific length.

installgem install id_encoder
Authors

Ruslan Khakimov

805 total downloads 805 for this version
Owners

79caed4b101a135b1b7d1709b7b43a78

Gemfile
gem 'id_encoder', '~> 0.0.1'
Versions
  1. 0.0.1 May 24, 2012 (6.5 KB)