Browse Source

Cipher status

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

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