Archive for the ‘Ruby’ Category
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 [...]
Tags:
