Cipher status

v1
Aeris 8 years ago
parent 51216b0f0f
commit 9b74c5a829
  1. 8
      lib/cryptcheck/tls/cipher.rb

@ -64,6 +64,14 @@ module CryptCheck
end
@name.colorize colors
end
def state
ok = Proc.new { |n| self.send "#{n}?" }
{ success: %i(pfs).select { |n| ok.call n },
warning: %i(des3 sha1).select { |n| ok.call n },
danger: %i(md5 psk srp anonymous null export des rc2 rc4).select { |n| ok.call n }
}
end
end
end
end

Loading…
Cancel
Save