Class: UnixCrypt::SHA512

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

Class Method Summary collapse

Methods inherited from SHABase

default_salt_length, hash

Methods inherited from Base

build, generate_salt

Class Method Details

.byte_indexesObject



155
156
157
158
# File 'lib/unix_crypt.rb', line 155

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

.digestObject



152
# File 'lib/unix_crypt.rb', line 152

def self.digest; Digest::SHA512; end

.identifierObject



154
# File 'lib/unix_crypt.rb', line 154

def self.identifier; 6; end

.lengthObject



153
# File 'lib/unix_crypt.rb', line 153

def self.length; 64; end