Sha256: bb73ac636a9f9cacd118c856b129ecf6ac73ac4a984e65267b3dd854c2cd611e

Contents?: true

Size: 555 Bytes

Versions: 216

Compression:

Stored size: 555 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

216 entries across 176 versions & 23 rubygems

Version Path
net-ssh-4.0.0.alpha1 support/arcfour_check.rb
net-ssh-3.1.0 support/arcfour_check.rb
net-ssh-3.1.0.rc2 support/arcfour_check.rb
net-ssh-3.1.0.rc1 support/arcfour_check.rb
net-ssh-3.1.0.beta3 support/arcfour_check.rb
net-ssh-3.1.0.beta2 support/arcfour_check.rb
honeybadger-2.4.0 vendor/gems/ruby/1.9.1/gems/net-ssh-2.9.1/support/arcfour_check.rb
honeybadger-2.4.0 vendor/gems/ruby/2.1.0/gems/net-ssh-2.9.1/support/arcfour_check.rb
honeybadger-2.4.0 vendor/gems/ruby/2.2.0/gems/net-ssh-2.9.1/support/arcfour_check.rb
net-ssh-2.9.4 support/arcfour_check.rb
vagrant-unbundled-1.8.1.1 vendor/bundle/ruby/2.3.0/gems/net-ssh-3.0.2/support/arcfour_check.rb
net-ssh-3.0.2 support/arcfour_check.rb
net-ssh-3.0.2.rc1 support/arcfour_check.rb
net-ssh-2.9.4.rc1 support/arcfour_check.rb
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/net-ssh-3.0.1/support/arcfour_check.rb
net-ssh-3.0.1 support/arcfour_check.rb
net-ssh-3.0.1.rc1 support/arcfour_check.rb
net-ssh-3.0.0.rc1 support/arcfour_check.rb
net-ssh-2.10.1.rc2 support/arcfour_check.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/net-ssh-2.9.2/support/arcfour_check.rb