Hidepgp隐写工具在音频隐写上的使用
隐写工具Hidepgp基本命令:
隐写:
Hide4PGP datafile secret.dat
(to hide secret.dat in datafile)
提取:
Hide4PGP -x datafile secret.dat
(extracts the data to secrets.dat)
隐写工具Hidepgp基本命令:
隐写:
steghide embed -cf [载体] -ef [隐藏的文件] -p [设置密码]
提取:
steghide extract -sf [载体] -xf [提取的文件] -p [密码]
批量隐写调用系统命令,这里使用python调用系统命令
steghide隐写工具:
import os
#隐写密码
password="12345"
#命令
cmdname="steghide"+" "+"embed"
#隐写工具地址
tooldir="F:/1学术研究/隐写工具/steghide-0.5.1-win32/steghide/"
#载体文件地址
coverFiledir="F:/1学术研究/5学习记录/5隐写分析/通用隐写/Steghide/wavData/25%/"
#隐藏文件地址
hideFiledir="F:/1学术研究/5学习记录/5隐写分析/通用隐写/Steghide/txtData/25%/"
for i in range(1,3501):
coverFile=coverFiledir+"OD"+format(i)+".wav"
#ODi.wav为载体文件名称
hideFile=hideFiledir+"100H"+format(i)+".dat"
#100Hi.dat为隐藏文件名称
cmd = tooldir+cmdname+" "+"-cf"+" "+coverFile+" "+"-ef"+" "+hideFile+" "+"-p"+" "+password
os.system(cmd)
print(i)
hide4pgp工具:
import os
tooldir="F:/1学术研究/隐写工具/hidepgp/hide4pgp"
coverFiledir="F:/1学术研究/5学习记录/5隐写分析/通用隐写/Hide4PGP/wavData/25%/"
hideFiledir="F:/1学术研究/5学习记录/5隐写分析/通用隐写/Hide4PGP/txtData/25%/"
for i in range(1,3501):
coverFile=coverFiledir+"OD"+format(i)+".wav"
hideFile=hideFiledir+"100H"+format(i)+".dat"
cmd=tooldir+" "+coverFile+" "+hideFile
os.system(cmd)
print(i)