Ejemplo n.º 1
0
def main():
    args = parse_args()
    img = get_image(args.image)
    check_image_format(img)
    check_image_mode(img)
    message = discover(img, args.key)
    print("Message:", message)
Ejemplo n.º 2
0
def main():
    args = parse_args()
    img = get_image(args.image)
    check_image_format(img)
    check_image_mode(img)
    message = discover(img)
    print(message)
    sys.exit(0)
Ejemplo n.º 3
0
def main():
    args = parse_args()
    img = get_image(args.image)
    check_image_format(img)
    check_image_mode(img)
    _, height = img.size
    for row in range(height):
        discover(img, row)
Ejemplo n.º 4
0
def main():
    args = parse_args()
    img = get_image(args.image)
    message = binary(args.message)
    check_image_format(img)
    check_image_mode(img)
    copy_img = copy_image(img)
    covered_img = cover(copy_img, message)
    if args.output:
        covered_img.save(args.output)
    else:
        covered_img.save(f"hidden.{img.format.lower()}")
Ejemplo n.º 5
0
def main():
    args = parse_args()
    img = get_image(args.image)
    check_image_format(img)
    check_image_mode(img)
    discover(img, args.row)