From 0e18b2f95acca68547db001d7ef372036cf3d29c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Bonhomme?= Date: Fri, 31 May 2019 22:21:35 +0200 Subject: [PATCH] Ignore the alpha component when revealing a message. --- stegano/lsbset/lsbset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stegano/lsbset/lsbset.py b/stegano/lsbset/lsbset.py index 65f08e8..93a6d77 100644 --- a/stegano/lsbset/lsbset.py +++ b/stegano/lsbset/lsbset.py @@ -126,7 +126,7 @@ def reveal( while True: generated_number = next(generator) # color = [r, g, b] - for color in img_list[generated_number][0:3]: + for color in img_list[generated_number][:3]: # ignore the alpha buff += (color & 1) << (tools.ENCODINGS[encoding] - 1 - count) count += 1 if count == tools.ENCODINGS[encoding]: