Class: UnixCrypt::SHA512

Inherits:
SHABase show all
Defined in:
lib/unix_crypt/sha.rb

Class Method Summary collapse

Methods inherited from SHABase

apply_rounds_bounds, default_rounds, default_salt_length, internal_hash, max_salt_length, rounds_marker

Methods inherited from Base

bit_specified_base64encode, build, construct_password, generate_salt, hash, prepare_password, rounds_marker

Class Method Details

.byte_indexes ⇒ Object



70
71
72
73
# File 'lib/unix_crypt/sha.rb', line 70

def self.byte_indexes
  [[0, 21, 42], [22, 43, 1], [44, 2, 23], [3, 24, 45], [25, 46, 4], [47, 5, 26], [6, 27, 48], [28, 49, 7], [50, 8, 29], [9, 30, 51], [31, 52, 10],
    [53, 11, 32], [12, 33, 54], [34, 55, 13], [56, 14, 35], [15, 36, 57], [37, 58, 16], [59, 17, 38], [18, 39, 60], [40, 61, 19], [62, 20, 41], [nil, nil, 63]]
end

.digest ⇒ Object



67
# File 'lib/unix_crypt/sha.rb', line 67

def self.digest; Digest::SHA512; end

.identifier ⇒ Object



69
# File 'lib/unix_crypt/sha.rb', line 69

def self.identifier; 6; end

.length ⇒ Object



68
# File 'lib/unix_crypt/sha.rb', line 68

def self.length; 64; end