MCPcopy Create free account
hub / github.com/ndleah/python-mini-project / encrypt_string

Method encrypt_string

Caesar_Cipher/Caesar_cipher.py:16–25  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

14 continue
15
16 def encrypt_string(self) -> str:
17 output = ""
18 for c in self.blank_string:
19 for k,v in self.key.items():
20 if k == c:
21 output += v
22 else:
23 continue
24 self.decrypted_string = output
25 return(output)
26
27 def decrypt_string(self, string: str) -> str:
28 output = ""

Callers 1

Caesar_cipher.pyFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected