Method: OpenSSL::HMAC#base64digest
- Defined in:
- lib/openssl/hmac.rb
#base64digest ⇒ Object
:call-seq:
hmac.base64digest -> string
Returns the authentication code an a Base64-encoded string.
17 18 19 |
# File 'lib/openssl/hmac.rb', line 17 def base64digest [digest].pack("m0") end |