Sha256: 57cbb102e96dd536c77b211fcf267da14836a1ecd59e841f3bb604ac2025cd90

Contents?: true

Size: 552 Bytes

Versions: 59

Compression:

Stored size: 552 Bytes

Contents

require 'net/ssh'

# ARCFOUR CHECK 
# 
# Usage:
#     $ ruby support/arcfour_check.rb
#
# Expected Output:
#     arcfour128: [16, 8] OpenSSL::Cipher::Cipher
#     arcfour256: [32, 8] OpenSSL::Cipher::Cipher
#     arcfour512: [64, 8] OpenSSL::Cipher::Cipher

[['arcfour128', 16], ['arcfour256', 32], ['arcfour512', 64]].each do |cipher|
  print "#{cipher[0]}: "
  a = Net::SSH::Transport::CipherFactory.get_lengths(cipher[0])
  b = Net::SSH::Transport::CipherFactory.get(cipher[0], key: ([].fill('x', 0, cipher[1]).join))
  puts "#{a} #{b.class}"
end

Version data entries

59 entries across 49 versions & 4 rubygems

Version Path
vagrant-unbundled-2.2.9.0 vendor/bundle/ruby/2.7.0/gems/net-ssh-5.2.0/support/arcfour_check.rb
vagrant-unbundled-2.2.8.0 vendor/bundle/ruby/2.7.0/gems/net-ssh-5.2.0/support/arcfour_check.rb
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.4.0/gems/net-ssh-4.1.0/support/arcfour_check.rb
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.6.0/gems/net-ssh-5.1.0/support/arcfour_check.rb
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.7.0/gems/net-ssh-5.1.0/support/arcfour_check.rb
honeybadger-4.5.3 vendor/bundle/ruby/2.6.0/gems/net-ssh-5.2.0/support/arcfour_check.rb
vagrant-unbundled-2.2.6.2 vendor/bundle/ruby/2.6.0/gems/net-ssh-5.1.0/support/arcfour_check.rb
vagrant-unbundled-2.2.6.1 vendor/bundle/ruby/2.6.0/gems/net-ssh-5.1.0/support/arcfour_check.rb
vagrant-unbundled-2.2.6.0 vendor/bundle/ruby/2.6.0/gems/net-ssh-5.1.0/support/arcfour_check.rb
vagrant-unbundled-2.2.5.0 vendor/bundle/ruby/2.5.0/gems/net-ssh-5.1.0/support/arcfour_check.rb
vagrant-unbundled-2.2.5.0 vendor/bundle/ruby/2.6.0/gems/net-ssh-5.1.0/support/arcfour_check.rb
vagrant-unbundled-2.2.5.0 vendor/bundle/ruby/2.5.0/gems/net-ssh-5.0.2/support/arcfour_check.rb
vagrant-unbundled-2.2.4.0 vendor/bundle/ruby/2.6.0/gems/net-ssh-5.1.0/support/arcfour_check.rb
vagrant-unbundled-2.2.4.0 vendor/bundle/ruby/2.5.0/gems/net-ssh-5.1.0/support/arcfour_check.rb
vagrant-unbundled-2.2.4.0 vendor/bundle/ruby/2.5.0/gems/net-ssh-5.0.2/support/arcfour_check.rb
net-ssh-5.2.0 support/arcfour_check.rb
net-ssh-5.2.0.rc3 support/arcfour_check.rb
net-ssh-5.2.0.rc2 support/arcfour_check.rb
net-ssh-5.2.0.rc1 support/arcfour_check.rb
vagrant-unbundled-2.2.3.0 vendor/bundle/ruby/2.5.0/gems/net-ssh-5.0.2/support/arcfour_check.rb