Module: Jekyll::HashFilter

Defined in:
lib/jekyll-hash.rb,
lib/jekyll-hash/version.rb

Constant Summary collapse

VERSION =
'0.1.0'

Instance Method Summary collapse

Instance Method Details

#sha3_224(input) ⇒ Object

SHA3



31
32
33
# File 'lib/jekyll-hash.rb', line 31

def sha3_224(input)
    OpenSSL::Digest.new('SHA3-224').hexdigest(input)
end

#sha3_256(input) ⇒ Object



35
36
37
# File 'lib/jekyll-hash.rb', line 35

def sha3_256(input)
    OpenSSL::Digest.new('SHA3-256').hexdigest(input)
end

#sha3_384(input) ⇒ Object



39
40
41
# File 'lib/jekyll-hash.rb', line 39

def sha3_384(input)
    OpenSSL::Digest.new('SHA3-384').hexdigest(input)
end

#sha3_512(input) ⇒ Object



43
44
45
# File 'lib/jekyll-hash.rb', line 43

def sha3_512(input)
    OpenSSL::Digest.new('SHA3-512').hexdigest(input)
end

#sha_224(input) ⇒ Object

SHA



6
7
8
# File 'lib/jekyll-hash.rb', line 6

def sha_224(input)
    OpenSSL::Digest.new('SHA224').hexdigest(input)
end

#sha_256(input) ⇒ Object



10
11
12
# File 'lib/jekyll-hash.rb', line 10

def sha_256(input)
    OpenSSL::Digest.new('SHA256').hexdigest(input)
end

#sha_384(input) ⇒ Object



14
15
16
# File 'lib/jekyll-hash.rb', line 14

def sha_384(input)
    OpenSSL::Digest.new('SHA384').hexdigest(input)
end

#sha_512(input) ⇒ Object



18
19
20
# File 'lib/jekyll-hash.rb', line 18

def sha_512(input)
    OpenSSL::Digest.new('SHA512').hexdigest(input)
end

#sha_512_224(input) ⇒ Object



22
23
24
# File 'lib/jekyll-hash.rb', line 22

def sha_512_224(input)
    OpenSSL::Digest.new('SHA512-224').hexdigest(input)
end

#sha_512_256(input) ⇒ Object



26
27
28
# File 'lib/jekyll-hash.rb', line 26

def sha_512_256(input)
    OpenSSL::Digest.new('SHA512-256').hexdigest(input)
end