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:
>
> 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
>
> --
> Posted via http://www.ruby-forum.com/.
>
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---