expirable-token

A generic class to convert simple information in a hard to understand hash that can be used in a URL for instance


License
MIT
Install
gem install expirable-token -v 0.0.3

Documentation

ExpirableToken

I've found very useful this class to hide the parameters in the URL

it generates a hash very compact and auto-expirable

How it works

In the object is store the creation date and the expiration date and the differences between them as well.

When the hash/token is decoded the class detects if the dates match.

Install in your project

Just require it in your Gemfile

gem 'expirable-token'

Gem Version

Visit Rubygems.org