Skip to content

Commit 3ef6878

Browse files
committed
1.0.3 - Added additional classes and constant to module, suppressed irrelevant type warnings
1 parent ac123cf commit 3ef6878

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "Stegastatter"
3-
version = "1.0.2"
3+
version = "1.0.3"
44
description = "A steganography engine"
55
authors = [
66
{name = "Jebbex1"}

stegastatter/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,7 @@
22
lsb_calculate_max_capacity, get_image_diffences, slice_image_bitplanes
33
from .errors import ContentWrapperError, TokenError, SteganographyError, BPCSError, BPCSCapacityError, \
44
BPCSEmbedError, BPCSExtractError, LSBError, LSBCapacityError, LSBEmbedError, \
5-
LSBExtractError
5+
LSBExtractError
6+
from .content_wrapper.wrapper import Algorithms
7+
from .bpcs.bpcs_image import BPCSImage
8+
from .lsb.lsb_image import LSBImage

stegastatter/content_wrapper/reed_solomon.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ def unpad(padded: bytes, block_size: int, ecc_symbol_num: int) -> bytes:
4343
if ecc_symbol_num >= block_size:
4444
raise ReedSolomonError(f"ECC Symbol num is larger than the block size: {ecc_symbol_num} > {block_size}")
4545
rsc = RSCodec(ecc_symbol_num, nsize=block_size)
46-
return rsc.decode(padded)[0]
46+
return rsc.decode(padded)[0] # type: ignore

stegastatter/content_wrapper/seeded_shuffler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def unshuffle_bytes(shuffled_bytes: bytes, seed: bytes):
2121
shuffled_perm = get_shuffled_perm(len(shuffled_bytes), seed)
2222

2323
zipped_ls = list(zip(shuffled_bytes, shuffled_perm))
24-
zipped_ls.sort(key=lambda x: x[1])
24+
zipped_ls.sort(key=lambda x: x[1]) # type: ignore
2525
unshuffled = bytearray()
2626
[unshuffled.append(a) for (a, b) in zipped_ls]
2727
return bytes(unshuffled)

0 commit comments

Comments
 (0)