Class HTAuth::Crypt
In: lib/htauth/crypt.rb
lib/htauth/crypt.rb
Parent: Algorithm

The basic crypt algorithm

Methods

encode   encode   new   new   prefix   prefix  

Public Class methods

[Source]

    # File lib/htauth/crypt.rb, line 8
 8:     def initialize(params = {})
 9:       @salt = params[:salt] || params['salt'] || gen_salt
10:     end

[Source]

    # File lib/htauth/crypt.rb, line 8
 8:     def initialize(params = {})
 9:       @salt = params[:salt] || params['salt'] || gen_salt
10:     end

Public Instance methods

[Source]

    # File lib/htauth/crypt.rb, line 16
16:     def encode(password)
17:       password.crypt(@salt)
18:     end

[Source]

    # File lib/htauth/crypt.rb, line 16
16:     def encode(password)
17:       password.crypt(@salt)
18:     end

[Source]

    # File lib/htauth/crypt.rb, line 12
12:     def prefix
13:             ""
14:     end

[Source]

    # File lib/htauth/crypt.rb, line 12
12:     def prefix
13:             ""
14:     end

[Validate]