瀏覽代碼

Better output for supported methods/ciphers

new-scoring
aeris 4 年之前
父節點
當前提交
3d12eaacea
共有 1 個檔案被更改,包括 8 行新增4 行删除
  1. +8
    -4
      bin/supported.rb

+ 8
- 4
bin/supported.rb 查看文件

@@ -5,8 +5,12 @@ require 'bundler/setup'
require 'cryptcheck'

puts 'Supported methods'
puts OpenSSL::SSL::SSLContext::METHODS.select { |m| CryptCheck::Tls::Server::EXISTING_METHODS.include? m }.sort.join ' '
puts CryptCheck::Tls::Method::SUPPORTED.sort.collect(&:to_s).join ' '

supported = CryptCheck::Tls::Cipher.list
puts "#{supported.size} supported ciphers"
puts supported.collect { |c| c.colorize }.join "\n"
CryptCheck::Tls::Cipher.each do |method, ciphers|
puts
puts "#{ciphers.size} supported ciphers for #{method}"
ciphers.sort.each do |cipher|
puts " #{cipher}"
end
end

Loading…
取消
儲存