Class: UnixCrypt::SHA256

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



146
147
148
# File 'lib/unix_crypt.rb', line 146

def self.byte_indexes
  [[0, 10, 20], [21, 1, 11], [12, 22, 2], [3, 13, 23], [24, 4, 14], [15, 25, 5], [6, 16, 26], [27, 7, 17], [18, 28, 8], [9, 19, 29], [nil, 31, 30]]
end

.digestObject



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

def self.digest; Digest::SHA256; end

.identifierObject



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

def self.identifier; 5; end

.lengthObject



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

def self.length; 32; end