# encode example: 사진에 문자열을 숨김>>>steganography-e입력_사진_경로출력_사진_경로문자열# decode example: 사진으로 부터 숨겨진 문자열을 읽음>>>steganography-d출력_사진_경로숨겨놓은"문자열"출력
예제 코드
# -*- coding: utf-8 -*-from __future__ importabsolute_import, unicode_literalsfromsteganography.steganographyimportSteganographyprint"-*- hide text to image -*-"path="/Users/ryuminsu/Documents/GitHub/steganography/sample/Stallman.jpg"output_path="/Users/ryuminsu/Documents/GitHub/steganography/sample/Stallman_out.jpg"text='Hello, this is testing code'Steganography.encode(path, output_path, text)
print"-*- read secret text from image -*-"secret_text=Steganograpy.decode(output_path)
printsecret_text