Skip to content

Commit

Permalink
auto finding packet information
Browse files Browse the repository at this point in the history
  • Loading branch information
sacha committed Jan 7, 2025
1 parent 2c6be32 commit ea7e2f2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions steganodf/algorithms/bitpool.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,11 @@ def split_by_separator(self, hash: List[int], separator: List[int]) -> List[int]

return results

def find_packet(self, df: pl.DataFrame, max_window=100) -> Tuple[int, int, int]:

new_df = self.compute_hash(df)
hash = new_df["hash"].to_list()

# def mask_separator(self, data: bytes) -> bytes:
# """
# Mask separator symbol by replacing it by 2 new bytes A,B.
Expand Down

0 comments on commit ea7e2f2

Please sign in to comment.