MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / __init__

Method __init__

ciphers/shuffled_shift_cipher.py:31–39  ·  view source on GitHub ↗

Initializes a cipher object with a passcode as it's entity Note: No new passcode is generated if user provides a passcode while creating the object

(self, passcode: str | None = None)

Source from the content-addressed store, hash-verified

29 """
30
31 def __init__(self, passcode: str | None = None) -> None:
32 """
33 Initializes a cipher object with a passcode as it's entity
34 Note: No new passcode is generated if user provides a passcode
35 while creating the object
36 """
37 self.__passcode = passcode or self.__passcode_creator()
38 self.__key_list = self.__make_key_list()
39 self.__shift_key = self.__make_shift_key()
40
41 def __str__(self) -> str:
42 """

Callers

nothing calls this directly

Calls 3

__passcode_creatorMethod · 0.95
__make_key_listMethod · 0.95
__make_shift_keyMethod · 0.95

Tested by

no test coverage detected