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
depengine-0.0.29 etc/isolate/ruby-1.8/gems/net-ssh-2.0.23/support/arcfour_check.rb
depengine-0.0.29 etc/isolate/jruby-1.8/gems/net-ssh-2.0.23/support/arcfour_check.rb
depengine-0.0.28 etc/isolate/jruby-1.8/gems/net-ssh-2.0.23/support/arcfour_check.rb
depengine-0.0.28 etc/isolate/ruby-1.8/gems/net-ssh-2.0.23/support/arcfour_check.rb
depengine-0.0.27 etc/isolate/jruby-1.8/gems/net-ssh-2.0.23/support/arcfour_check.rb
depengine-0.0.27 etc/isolate/ruby-1.8/gems/net-ssh-2.0.23/support/arcfour_check.rb
depengine-0.0.26 etc/isolate/ruby-1.8/gems/net-ssh-2.0.23/support/arcfour_check.rb
depengine-0.0.26 etc/isolate/jruby-1.8/gems/net-ssh-2.0.23/support/arcfour_check.rb
depengine-0.0.25 etc/isolate/jruby-1.8/gems/net-ssh-2.0.23/support/arcfour_check.rb
depengine-0.0.25 etc/isolate/ruby-1.8/gems/net-ssh-2.0.23/support/arcfour_check.rb
depengine-0.0.24 etc/isolate/jruby-1.8/gems/net-ssh-2.0.23/support/arcfour_check.rb
depengine-0.0.24 etc/isolate/ruby-1.8/gems/net-ssh-2.0.23/support/arcfour_check.rb
depengine-0.0.23 etc/isolate/jruby-1.8/gems/net-ssh-2.0.23/support/arcfour_check.rb
depengine-0.0.23 etc/isolate/ruby-1.8/gems/net-ssh-2.0.23/support/arcfour_check.rb
depengine-0.0.22 etc/isolate/ruby-1.8/gems/net-ssh-2.0.23/support/arcfour_check.rb
depengine-0.0.22 etc/isolate/jruby-1.8/gems/net-ssh-2.0.23/support/arcfour_check.rb
depengine-0.0.21 etc/isolate/jruby-1.8/gems/net-ssh-2.0.23/support/arcfour_check.rb
depengine-0.0.21 etc/isolate/ruby-1.8/gems/net-ssh-2.0.23/support/arcfour_check.rb
depengine-0.0.20 etc/isolate/jruby-1.8/gems/net-ssh-2.0.23/support/arcfour_check.rb
depengine-0.0.20 etc/isolate/ruby-1.8/gems/net-ssh-2.0.23/support/arcfour_check.rb