Issue with authentication

Hi All,

I am a newbie and playing around with restful_authentication in my sample app. The associated code for user.rb is pasted below. When I try to run the server, i get the following error. I am using Rails 2.0.2. Could anyone point me as to what am i missing?

Line no 66: # Encrypts some data with the salt.
Line no 67:
def self.encrypt(password, salt)
Line no 68:
Digest::SHA1.hexdigest("–#{salt}–#{password}–")
Line no 69:
end

It seems to be a syntax error. Somewhere you may have missed out a
bracket.
Better you copy and paste the full user.rb code here.