X7ROOT File Manager
Current Path:
/opt/alt/ruby40/share/ruby
opt
/
alt
/
ruby40
/
share
/
ruby
/
??
..
??
English.rb
(5.96 KB)
??
bigdecimal
??
bundled_gems.rb
(8.41 KB)
??
cgi
??
cgi.rb
(311 B)
??
coverage.rb
(517 B)
??
date.rb
(1.17 KB)
??
delegate.rb
(11.96 KB)
??
did_you_mean
??
did_you_mean.rb
(4.51 KB)
??
digest
??
digest.rb
(3.3 KB)
??
erb
??
erb.rb
(32.57 KB)
??
error_highlight
??
error_highlight.rb
(84 B)
??
expect.rb
(2.19 KB)
??
fileutils.rb
(79.18 KB)
??
find.rb
(2.54 KB)
??
forwardable
??
forwardable.rb
(8.81 KB)
??
io
??
ipaddr.rb
(22.86 KB)
??
json
??
json.rb
(21.45 KB)
??
mkmf.rb
(93.16 KB)
??
monitor.rb
(6.97 KB)
??
net
??
objspace
??
objspace.rb
(4.14 KB)
??
open-uri.rb
(28.58 KB)
??
open3
??
open3.rb
(47.51 KB)
??
openssl
??
openssl.rb
(1.24 KB)
??
optionparser.rb
(59 B)
??
optparse
??
optparse.rb
(65.44 KB)
??
pathname.rb
(2 KB)
??
pp.rb
(19.21 KB)
??
prettyprint.rb
(15.95 KB)
??
prism
??
prism.rb
(3.74 KB)
??
psych
??
psych.rb
(26.05 KB)
??
random
??
resolv.rb
(88.39 KB)
??
ripper
??
ripper.rb
(2.44 KB)
??
securerandom.rb
(2.28 KB)
??
set
??
shellwords.rb
(7.53 KB)
??
singleton.rb
(5.59 KB)
??
socket.rb
(61.26 KB)
??
strscan
??
syntax_suggest
??
syntax_suggest.rb
(74 B)
??
tempfile.rb
(20.7 KB)
??
time.rb
(24.01 KB)
??
timeout.rb
(10.48 KB)
??
tmpdir.rb
(5.62 KB)
??
tsort.rb
(14.36 KB)
??
un.rb
(11.17 KB)
??
unicode_normalize
??
uri
??
uri.rb
(3.09 KB)
??
vendor_ruby
??
weakref.rb
(1.39 KB)
??
yaml
??
yaml.rb
(2.16 KB)
Editing: openssl.rb
# frozen_string_literal: true =begin = Info 'OpenSSL for Ruby 2' project Copyright (C) 2002 Michal Rokos <m.rokos@sh.cvut.cz> All rights reserved. = Licence This program is licensed under the same licence as Ruby. (See the file 'COPYING'.) =end require 'openssl.so' require_relative 'openssl/bn' require_relative 'openssl/cipher' require_relative 'openssl/digest' require_relative 'openssl/hmac' require_relative 'openssl/pkcs5' require_relative 'openssl/pkey' require_relative 'openssl/ssl' require_relative 'openssl/version' require_relative 'openssl/x509' module OpenSSL # :call-seq: # OpenSSL.secure_compare(string, string) -> true or false # # Constant time memory comparison. Inputs are hashed using SHA-256 to mask # the length of the secret. Returns +true+ if the strings are identical, # +false+ otherwise. # # This method is expensive due to the SHA-256 hashing. In most cases, where # the input lengths are known to be equal or are not sensitive, # OpenSSL.fixed_length_secure_compare should be used instead. def self.secure_compare(a, b) hashed_a = OpenSSL::Digest.digest('SHA256', a) hashed_b = OpenSSL::Digest.digest('SHA256', b) OpenSSL.fixed_length_secure_compare(hashed_a, hashed_b) && a == b end end
Upload File
Create Folder