Clearance Crypto

So in my foray into the rails templates world I’ve stumbled onto a couple of authentication options that I wasn’t previously aware of.

“Authlogic”:http://github.com/binarylogic/authlogic/tree/master which is nice in that it moves all the actual authentication logic into a gem to make updates dead simple. The one thing I didn’t like was that you have to generate all of your own MVC code. Though honestly this isn’t such an issue now that I have it all rolled in to a “Rails 2.3 template”:https://github.com/pixels-and-bits/strappy/tree

“Clearance”:https://github.com/thoughtbot/clearance/tree is also nice in that it generates the MVC code yet still keeps all the authentication logic in a gem for easy updates. The only thing I didn’t really care for, though I do understand why they did it, is the inability to choose the hash algorithm.

Along comes “ClearanceCrypto”:https://github.com/pixels-and-bits/clearance_crypto/tree this provides a very similar way to choose the hashing algorithm like you can in Authlogic. The code was picked and tweaked from the Authlogic code to match the way Clearance checks the authentication.

It’s very new and may have issues. Feel free to let me know if you find anything.