D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
OpenSSL
/
HMAC
/
Filename :
base64digest-c.ri
back
Copy
U:RDoc::AnyMethod[iI"base64digest:ETI" OpenSSL::HMAC::base64digest;TT:publico:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [I"NReturns the authentication code as a Base64-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":hmac = OpenSSL::HMAC.base64digest('SHA1', key, data) ;TI"'#=> "3nybhbi3iqa8ino29wqQcBydtNk=";T:@format0: @fileI"$ext/openssl/lib/openssl/hmac.rb;T:0@omit_headings_from_table_of_contents_below0I"5HMAC.base64digest(digest, key, data) -> aString ;T0[ I"(digest, key, data);T@FI" HMAC;TcRDoc::NormalClass00