class UnixCrypt::SHA512
Protected Class Methods
byte_indexes()
click to toggle source
# 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()
click to toggle source
# File lib/unix_crypt/sha.rb, line 67 def self.digest; Digest::SHA512; end
identifier()
click to toggle source
# File lib/unix_crypt/sha.rb, line 69 def self.identifier; 6; end
length()
click to toggle source
# File lib/unix_crypt/sha.rb, line 68 def self.length; 64; end