Linux worldls-302.fr.planethoster.net 4.18.0-553.8.1.lve.el7h.x86_64 #1 SMP Thu Jul 4 15:19:33 UTC 2024 x86_64
LiteSpeed
Server IP : 10.185.0.203 & Your IP : 216.73.217.14
Domains :
Cant Read [ /etc/named.conf ]
User : gerathty
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
alt /
ruby30 /
share /
ruby /
openssl /
Delete
Unzip
Name
Size
Permission
Date
Action
bn.rb
707
B
-rw-r--r--
2024-06-26 15:29
buffering.rb
10.05
KB
-rw-r--r--
2024-06-26 15:29
cipher.rb
1.7
KB
-rw-r--r--
2024-06-26 15:29
config.rb
12.94
KB
-rw-r--r--
2024-06-26 15:29
digest.rb
1.63
KB
-rw-r--r--
2024-06-26 15:29
hmac.rb
1.69
KB
-rw-r--r--
2024-06-26 15:29
marshal.rb
568
B
-rw-r--r--
2024-06-26 15:29
pkcs5.rb
613
B
-rw-r--r--
2024-06-26 15:29
pkey.rb
14.11
KB
-rw-r--r--
2024-06-26 15:29
ssl.rb
17.38
KB
-rw-r--r--
2024-06-26 15:29
version.rb
70
B
-rw-r--r--
2024-06-26 15:29
x509.rb
10.63
KB
-rw-r--r--
2024-06-26 15:29
Save
Rename
# frozen_string_literal: true module OpenSSL class HMAC # Securely compare with another HMAC instance in constant time. def ==(other) return false unless HMAC === other return false unless self.digest.bytesize == other.digest.bytesize OpenSSL.fixed_length_secure_compare(self.digest, other.digest) end class << self # :call-seq: # HMAC.digest(digest, key, data) -> aString # # Returns the authentication code as a binary string. The _digest_ parameter # specifies the digest algorithm to use. This may be a String representing # the algorithm name or an instance of OpenSSL::Digest. # # === Example # key = 'key' # data = 'The quick brown fox jumps over the lazy dog' # # hmac = OpenSSL::HMAC.digest('SHA1', key, data) # #=> "\xDE|\x9B\x85\xB8\xB7\x8A\xA6\xBC\x8Az6\xF7\n\x90p\x1C\x9D\xB4\xD9" def digest(digest, key, data) hmac = new(key, digest) hmac << data hmac.digest end # :call-seq: # HMAC.hexdigest(digest, key, data) -> aString # # Returns the authentication code as a hex-encoded string. The _digest_ # parameter specifies the digest algorithm to use. This may be a String # representing the algorithm name or an instance of OpenSSL::Digest. # # === Example # key = 'key' # data = 'The quick brown fox jumps over the lazy dog' # # hmac = OpenSSL::HMAC.hexdigest('SHA1', key, data) # #=> "de7c9b85b8b78aa6bc8a7a36f70a90701c9db4d9" def hexdigest(digest, key, data) hmac = new(key, digest) hmac << data hmac.hexdigest end end end end