Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Changed .format to f string
  • Loading branch information
GustavRamirez authored Oct 12, 2021
commit c851f593d7bdc199a76ed8fb8139334a370cd124
2 changes: 1 addition & 1 deletion ciphers/des_algorithm.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def solve(self, msg: str, key: str, rnd: int) -> str:
print("Now applying PC-1 we get: ")
key = self.pc1(key)
print(self.pretty(key))
print("Rotating {} bit to the left we get:".format(self.shifts[rnd]))
print(f"Rotating {self.shifts[rnd]} bit to the left we get:")
key = self.shift_left(key, rnd)
print(self.pretty(key))
print("Applying PC-2 we get:")
Expand Down