Method: Ccrypto::Ruby::DigestEngine#digest_final
- Defined in:
- lib/ccrypto/ruby/engines/digest_engine.rb
#digest_final(output = :binary) ⇒ Object
107 108 109 110 111 112 113 114 115 116 117 118 119 |
# File 'lib/ccrypto/ruby/engines/digest_engine.rb', line 107 def digest_final(output = :binary) res = @inst.digest @inst.reset case output when :hex to_hex(res) when :b64 to_b64(res) else res end end |