Acts as Authenticated

Hi,

Can anyone tell me the hash encryption level for a password using acts
as authenticated 128bit, 164bit???

require ‘digest/sha1’

Encrypts some data with the salt.

def self.encrypt(password, salt)
Digest::SHA1.hexdigest("–#{salt}–#{password}–")
end

JB

Correct me if I’m wrong, imho it doesn’t have an encryption level
since hashing is one-way…
A sha1 hash is 40 alnum characters (160 bit) long.

Sincerely
Florian

Am 09.05.2007 um 11:49 schrieb John:

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs