class UnixCrypt::SHA256

Protected Class Methods

byte_indexes() click to toggle source
# File lib/unix_crypt/sha.rb, line 60
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
digest() click to toggle source
# File lib/unix_crypt/sha.rb, line 56
def self.digest; Digest::SHA256; end
identifier() click to toggle source
# File lib/unix_crypt/sha.rb, line 58
def self.identifier; 5; end
length() click to toggle source
# File lib/unix_crypt/sha.rb, line 57
def self.length; 32; end