def _is_secure_cipher(cipher):
 tokens = [e.upper() for e in cipher.name().split('-')]
 if (cipher.usedBits() < 128):
  return False
 elif ((cipher.keyExchangeMethod() == 'DH') and (os.name == 'nt')):
  return False
 elif cipher.encryptionMethod().upper().startswith('RC4'):
  return False
 elif cipher.encryptionMethod().upper().startswith('DES'):
  return False
 elif ('MD5' in tokens):
  return False
 elif (cipher.authenticationMethod() in ['aNULL', 'NULL']):
  return False
 elif (cipher.encryptionMethod() in ['eNULL', 'NULL']):
  return False
 elif (('EXP' in tokens) or ('EXPORT' in tokens)):
  return False
 elif ('ADH' in tokens):
  return False
 else:
  return True

def _is_secure_cipher ( cipher ) : tokens = [ e . upper ( ) for e in cipher . name ( ) . split ( '-' ) ] if ( cipher . usedBits ( ) < 128 ) : return False elif ( ( cipher . keyExchangeMethod ( ) == 'DH' ) and ( os . name == 'nt' ) ) : return False elif cipher . encryptionMethod ( ) . upper ( ) . startswith ( 'RC4' ) : return False elif cipher . encryptionMethod ( ) . upper ( ) . startswith ( 'DES' ) : return False elif ( 'MD5' in tokens ) : return False elif ( cipher . authenticationMethod ( ) in [ 'aNULL' , 'NULL' ] ) : return False elif ( cipher . encryptionMethod ( ) in [ 'eNULL' , 'NULL' ] ) : return False elif ( ( 'EXP' in tokens ) or ( 'EXPORT' in tokens ) ) : return False elif ( 'ADH' in tokens ) : return False else : return True
check if a given ssl cipher isnt broken yet .