Skip to content

Commit

Permalink
🗓 Jul 28, 2022 9:04:27 PM
Browse files Browse the repository at this point in the history
🔥 translate renamed to substitute
🔥 refactor of various encryption methods to handle various types of key and iv
🧪 tests added/updated
  • Loading branch information
securisec committed Jul 29, 2022
1 parent 25ffaa6 commit 8683508
Show file tree
Hide file tree
Showing 7 changed files with 273 additions and 211 deletions.
1 change: 1 addition & 0 deletions TODO
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ New ideas:
☐ ignore error method
☐ swap bytes
☐ @high disable plugins from code
☐ remove unprintable method

Bug:

Expand Down
2 changes: 1 addition & 1 deletion chepy/modules/dataformat.py
Original file line number Diff line number Diff line change
Expand Up @@ -1196,7 +1196,7 @@ def change(c):
return self

@ChepyDecorators.call_stack
def translate(self, x: str, y: str) -> DataFormatT:
def substitute(self, x: str, y: str) -> DataFormatT:
"""Replace a subset of specified characters in the state.
Args:
Expand Down
2 changes: 1 addition & 1 deletion chepy/modules/dataformat.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@ class DataFormat(ChepyCore):
def select(self: DataFormatT, start: int, end: int) -> DataFormatT: ...
def length(self: DataFormatT) -> DataFormatT: ...
def to_leetcode(self: DataFormatT, replace_space: str=...) -> DataFormatT: ...
def translate(self: DataFormatT, x: str=..., y: str=...) -> DataFormatT: ...
def substitute(self: DataFormatT, x: str=..., y: str=...) -> DataFormatT: ...

0 comments on commit 8683508

Please sign in to comment.