Class: HTAuth::Plaintext

Inherits:
Algorithm show all
Defined in:
lib/htauth/plaintext.rb

Overview

the plaintext algorithm, which does absolutly nothing

Constant Summary

Constants inherited from Algorithm

Algorithm::DEFAULT, Algorithm::EXISTING, Algorithm::SALT_CHARS

Instance Method Summary collapse

Methods inherited from Algorithm

algorithm_from_name, algorithms_from_field, #gen_salt, inherited, sub_klasses, #to_64

Constructor Details

#initialize(params = {}) ⇒ Plaintext

ignore parameters



8
9
# File 'lib/htauth/plaintext.rb', line 8

def initialize(params = {})
end

Instance Method Details

#encode(password) ⇒ Object



15
16
17
# File 'lib/htauth/plaintext.rb', line 15

def encode(password)
  "#{password}"
end

#prefixObject



11
12
13
# File 'lib/htauth/plaintext.rb', line 11

def prefix
  ""
end