Browse Source

Cipher status

master
Aeris 4 years ago
parent
commit
9b74c5a829
1 changed files with 8 additions and 0 deletions
  1. 8
    0
      lib/cryptcheck/tls/cipher.rb

+ 8
- 0
lib/cryptcheck/tls/cipher.rb View File

@@ -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