module Sequel::Plugins::HashId

This plugin allows you to easily obscure the primary key of your models with an encoded hashid equivalent.

A few convenience methods are provided which wrap around the Hashids library.

Plugin Options

:salt

The salt used to hash/unhash the primary key values. Required.

:length

By default, the length is variable. Setting an integer here forces all hashids to be a specific length.