digest-keccak/lib/digest/sha3/helpers.rb

10 lines
155 B
Ruby
Raw Normal View History

2012-10-04 12:30:56 -04:00
Digest::SHA3.class_eval do
def self.hexdigest(*args)
digest(*args).unpack("H*").first
end
def hexdigest
digest.unpack("H*").first
end
end