Archive for the ‘Ruby on Rails’ Category
In yet another attempt to create a good user login application, I’ve pieced together things I’ve read to come up with this! Many thanks to the articles already out there in the Rails community. Without them I would never have been able to create this.
Let’s say you want to create yourself a little app that [...]
In an attempt to learn about Rails security system (ie. for blogs, forums, and other user-based posting systems) I’ve come finally to this method:
pw = "password" # this is soemthing the user enters on registration, obviously.
pw_salt = "G0TwarhtajtaTHeTJ" # random string of characters that’s defined before installation
pw_hash = Digest::SHA1.hexdigest("!_#{pw_salt}_#{pw}")
Obviously this isn’t the complete coding for [...]
