Gestionnaire de fichiers - Editer - /opt/cpanel/ea-ruby24/root/usr/share/ri/system/OpenSSL/HMAC/new-c.ri
Arrière
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
| ver. 1.4 |
Github
|
.
| PHP 8.0.30 | Génération de la page: 0 |
proxy
|
phpinfo
|
Réglages