Class Authlogic::CryptoProviders::MD5
In: lib/casserver/authenticators/authlogic_crypto_providers/md5.rb
Parent: Object

This class was made for the users transitioning from md5 based systems. I highly discourage using this crypto provider as it superbly inferior to your other options.

Please use any other provider offered by Authlogic.

Methods

encrypt   matches?   stretches  

Attributes

join_token  [RW] 
stretches  [W] 

Public Class methods

Turns your raw password into a MD5 hash.

[Source]

    # File lib/casserver/authenticators/authlogic_crypto_providers/md5.rb, line 21
21:         def encrypt(*tokens)
22:           digest = tokens.flatten.join(join_token)
23:           stretches.times { digest = Digest::MD5.hexdigest(digest) }
24:           digest
25:         end

Does the crypted password match the tokens? Uses the same tokens that were used to encrypt.

[Source]

    # File lib/casserver/authenticators/authlogic_crypto_providers/md5.rb, line 28
28:         def matches?(crypted, *tokens)
29:           encrypt(*tokens) == crypted
30:         end

The number of times to loop through the encryption.

[Source]

    # File lib/casserver/authenticators/authlogic_crypto_providers/md5.rb, line 15
15:         def stretches
16:           @stretches ||= 1
17:         end

[Validate]