restful_authentication - how does encryption work?

I would recommend taking a look at the code which can be found here:

http://github.com/technoweenie/restful-authentication/tree/master

or

to get a general example you can read chapter 11 in the AWDwRails 3rd.

Good luck,

-Conrad