⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.93
Server IP:
65.108.141.171
Server:
Linux server.heloix.com 5.4.0-214-generic #234-Ubuntu SMP Fri Mar 14 23:50:27 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
ri
/
2.7.0
/
system
/
OpenSSL
/
HMAC
/
View File Name :
new-c.ri
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