docx_steg deprecated. Duplicate of file_steg.py

This commit is contained in:
devoalda 2023-05-30 21:14:00 +08:00
parent b267e81b4a
commit 2ecb426115
1 changed files with 4 additions and 2 deletions

View File

@ -1,7 +1,8 @@
import numpy as np import numpy as np
from pprint import pprint
##################################################
# Duplicate of file_steg.py, to remove #
##################################################
class docx_steg: class docx_steg:
def __init__(self, docx_file: str = "testfile.docx", bits_to_hide: list[int] = None) -> None: def __init__(self, docx_file: str = "testfile.docx", bits_to_hide: list[int] = None) -> None:
""" """
@ -11,6 +12,7 @@ class docx_steg:
:param bits_to_hide: Bit to hide the data in (1 - LSB to 8 - MSB) :param bits_to_hide: Bit to hide the data in (1 - LSB to 8 - MSB)
:type bits_to_hide: list[int] :type bits_to_hide: list[int]
""" """
raise NotImplementedError("Duplicate of file_steg.py, to remove")
self.docx_file = docx_file self.docx_file = docx_file
self.bits_to_hide = [8 - bit_pos for bit_pos in bits_to_hide] if bits_to_hide else [1] # Default is LSB self.bits_to_hide = [8 - bit_pos for bit_pos in bits_to_hide] if bits_to_hide else [1] # Default is LSB
self.delimiter = "=====" # Delimiter to indicate the end of the secret data self.delimiter = "=====" # Delimiter to indicate the end of the secret data