⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.133
Server IP:
185.119.109.197
Server:
Linux managedhosting.chostar.me 5.15.0-160-generic #170-Ubuntu SMP Wed Oct 1 10:06:56 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.1.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
ri
/
3.0.0
/
system
/
Digest
/
SHA2
/
View File Name :
cdesc-SHA2.ri
U:RDoc::NormalClass[iI" SHA2:ETI"Digest::SHA2;TI"Digest::Class;To:RDoc::Markup::Document:@parts[o;;[o:RDoc::Markup::Paragraph;[I"@A meta digest provider class for SHA256, SHA384 and SHA512.;To:RDoc::Markup::BlankLine o; ;[I"GFIPS 180-2 describes SHA2 family of digest algorithms. It defines ;TI"three algorithms:;To:RDoc::Markup::List: @type:BULLET:@items[o:RDoc::Markup::ListItem:@label0;[o; ;[I"Aone which works on chunks of 512 bits and returns a 256-bit ;TI"digest (SHA256),;To;;0;[o; ;[I"Bone which works on chunks of 1024 bits and returns a 384-bit ;TI"digest (SHA384),;To;;0;[o; ;[I"Fand one which works on chunks of 1024 bits and returns a 512-bit ;TI"digest (SHA512).;T@S:RDoc::Markup::Heading: leveli: textI" Examples;To:RDoc::Markup::Verbatim;[I"require 'digest' ;TI" ;TI"!# Compute a complete digest ;TI"?Digest::SHA2.hexdigest 'abc' # => "ba7816bf8..." ;TI"?Digest::SHA2.new(256).hexdigest 'abc' # => "ba7816bf8..." ;TI"?Digest::SHA256.hexdigest 'abc' # => "ba7816bf8..." ;TI" ;TI"?Digest::SHA2.new(384).hexdigest 'abc' # => "cb00753f4..." ;TI"?Digest::SHA384.hexdigest 'abc' # => "cb00753f4..." ;TI" ;TI"?Digest::SHA2.new(512).hexdigest 'abc' # => "ddaf35a19..." ;TI"?Digest::SHA512.hexdigest 'abc' # => "ddaf35a19..." ;TI" ;TI" # Compute digest by chunks ;TI"Csha2 = Digest::SHA2.new # =>#
;TI"sha2.update "ab" ;TI"?sha2 << "c" # alias for #update ;TI"?sha2.hexdigest # => "ba7816bf8..." ;TI" ;TI"5# Use the same object to compute another digest ;TI"sha2.reset ;TI"sha2 << "message" ;TI">sha2.hexdigest # => "ab530a13e...";T:@format0: @fileI" ext/digest/sha2/lib/sha2.rb;T:0@omit_headings_from_table_of_contents_below0;0;0[ [ [ [[I" class;T[[:public[[I"new;TI" ext/digest/sha2/lib/sha2.rb;T[:protected[ [:private[ [I" instance;T[[;[ [I"<<;T@Q[I"block_length;T@Q[I"digest_length;T@Q[I" reset;T@Q[I"update;T@Q[;[ [;[ [ [U:RDoc::Context::Section[i 0o;;[ ;0;0[@EI"Digest;TcRDoc::NormalModule