Skip to content

Carigna/cryptid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Cryptid

The cryptid plugin allows you to use crypted id to identify object identities in your routes.

Installation

To install, simply run the following command from your project.

script/plugin install git://github.com/Frodotus/cryptid.git

Then in your ActiveRecord model classes simply add the include statement.

Usage

class Foo < ActiveRecord::Base

      encrypt_id

end

As a result of this statement, assuming your Foo object has an id of 144, your resourceful routes change from this:

http://server.com/foos/114

to:

http://server.com/foos/9873498273400000144

By using ids with checksum web user can not view other resources by just adding ids.

License

Cryptid is released under a MIT license, and is copyright 2009 Carigna Oy. Copy of the license can be found in LICENSE.txt.

About

Rails Plugin that enables RESTful Resources to be routed by cryptic ids

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages