Class: UnixCrypt::SHA256
Class Method Summary collapse
Methods inherited from SHABase
apply_rounds_bounds, default_rounds, default_salt_length, internal_hash, max_salt_length, rounds_marker
Methods inherited from Base
bit_specified_base64encode, build, construct_password, generate_salt, hash, prepare_password, rounds_marker
Class Method Details
.byte_indexes ⇒ Object
60 61 62 |
# 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 ⇒ Object
56 |
# File 'lib/unix_crypt/sha.rb', line 56 def self.digest; Digest::SHA256; end |
.identifier ⇒ Object
58 |
# File 'lib/unix_crypt/sha.rb', line 58 def self.identifier; 5; end |
.length ⇒ Object
57 |
# File 'lib/unix_crypt/sha.rb', line 57 def self.length; 32; end |