- isExp = cipher in self.exp
- isLow = cipher in self.low
- isMedium = cipher in self.medium
- isHigh = cipher in self.high
- assert isExp+isLow+isMedium+isHigh <= 1, "Cipher is more than one from EXP, LOW, MEDIUM, HIGH"
- if isExp:
- strength = CipherStrength.exp
- elif isLow:
- strength = CipherStrength.low
- elif isMedium:
- strength = CipherStrength.medium
- elif isHigh: