Class: UnixCrypt::SHA256

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

Class Method Summary collapse

Methods inherited from SHABase

hash

Methods inherited from Base

build

Class Method Details

.byte_indexesObject



118
119
120
# File 'lib/unix_crypt.rb', line 118

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



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

def self.digest; Digest::SHA256; end

.identifierObject



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

def self.identifier; 5; end

.lengthObject



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

def self.length; 32; end