Class: UnixCrypt::DES

Inherits:
Base
  • Object
show all
Defined in:
lib/unix_crypt/des.rb

Class Method Summary collapse

Methods inherited from Base

bit_specified_base64encode, build, generate_salt, prepare_password, rounds_marker

Class Method Details

.construct_password(password, salt, rounds) ⇒ Object



7
8
9
# File 'lib/unix_crypt/des.rb', line 7

def self.construct_password(password, salt, rounds)
  password.crypt(salt)
end

.default_salt_length ⇒ Object



11
# File 'lib/unix_crypt/des.rb', line 11

def self.default_salt_length; 2; end

.hash(*args) ⇒ Object



2
3
4
# File 'lib/unix_crypt/des.rb', line 2

def self.hash(*args)
  raise "Unimplemented for DES"
end

.max_salt_length ⇒ Object



12
# File 'lib/unix_crypt/des.rb', line 12

def self.max_salt_length; 2; end