sum() of the mutated list of ascii values of all characters where the mutated list is the one returned by __neg_pos()
(self)
| 117 | return keys_l |
| 118 | |
| 119 | def __make_shift_key(self) -> int: |
| 120 | """ |
| 121 | sum() of the mutated list of ascii values of all characters where the |
| 122 | mutated list is the one returned by __neg_pos() |
| 123 | """ |
| 124 | num = sum(self.__neg_pos([ord(x) for x in self.__passcode])) |
| 125 | return num if num > 0 else len(self.__passcode) |
| 126 | |
| 127 | def decrypt(self, encoded_message: str) -> str: |
| 128 | """ |