D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
OpenSSL
/
HMAC
/
Filename :
hexdigest-i.ri
back
Copy
U:RDoc::AnyMethod[iI"hexdigest:ETI"OpenSSL::HMAC#hexdigest;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"MReturns the authentication code an instance represents as a hex-encoded ;TI"string.;T: @fileI"ext/openssl/ossl_hmac.c;T:0@omit_headings_from_table_of_contents_below0I"hmac.hexdigest -> string ;T0[[I"inspect;To;; [ o; ; [I"KReturns the authentication code as a hex-encoded string. The _digest_ ;TI"Kparameter specifies the digest algorithm to use. This may be a String ;TI"Grepresenting the algorithm name or an instance of OpenSSL::Digest.;To:RDoc::Markup::BlankLine S:RDoc::Markup::Heading: leveli: textI"Example;To:RDoc::Markup::Verbatim; [ I"key = 'key' ;TI":data = 'The quick brown fox jumps over the lazy dog' ;TI" ;TI"7hmac = OpenSSL::HMAC.hexdigest('SHA1', key, data) ;TI"3#=> "de7c9b85b8b78aa6bc8a7a36f70a90701c9db4d9";T:@format0;I"$ext/openssl/lib/openssl/hmac.rb;T;0[I" to_s;T@I"();T@FI" HMAC;TcRDoc::NormalClass00