Пример #1
0
def normal():
        container = args.image
        mode = args.mode
        try:
            steg = Steganography(container)
            if mode == "hide":
                if args.in_file:
                    information = open(args.in_file, 'rb').read()
                else:
                    information = input("Enter concealed text:\n")
                steg.hide_information(information, args.out_file)
            elif mode == "unhide":
                steg.unhide_information(args.out_file)
        except Exception as e:
            sys.exit("Error: {0}".format(e))