コード例 #1
0
        fileName = raw_input('Would You Kindly Give the Name of The File:')
        audioName = raw_input('Would You Kindly Give the Name of the Audio File:')

        strOut = ""
        f = open(audioName, "rb")
        try:
            byte = f.read(1)
            while byte != "":
                strOut = strOut + byte
                byte = f.read(1)
        finally:
            f.close()

        numBytes = len(strOut)

        Steganography.steg(Helpers.stringToBitArray(strOut), False, fileName)

    elif mode == "desteg":

        fileName = raw_input('Would You Kindly Give the Name of the File:')

        strOut = ""
        f = open("mario.mid", "rb")
        try:
            byte = f.read(1)
            while byte != "":
                strOut = strOut + byte
                byte = f.read(1)
        finally:
            f.close()