JavaArt Chapter 6. Steganography
From the website:
Killer Game Programming in Java
http://fivedots.coe.psu.ac.th/~ad/jg
Dr. Andrew Davison
Dept. of Computer Engineering
Prince of Songkla University
Hat yai, Songkhla 90112, Thailand
E-mail: [email protected]
If you use this code, please mention my name, and include a link
to the website.
Thanks,
Andrew
============================
This directory contains 6 Java programs.
* HideText.java
- this calls one of the steganography classes
to hide text inside an image
* RevealText.java
- this calls one of the steganography classes
to extract text hidden inside an image
* Steganography.java // 4 steganography classes
* StegCrypt.java
* MultiStegCrypt.java
* FragMultiStegCrypt.java
There are 2 subdirectories:
* examps\ -- text files for use in testing
* images\ -- PNG files for use in testing
There are 2 batch files:
* compile.bat
* run.bat
- they assume that Jasypt is in c:\jasypt-1.5\
----------------------------
Compilation:
> compile *.java
----------------------------
Execution:
The HideText and RevealText classes take an integer argument which
specifies which steganography class they should use:
0 == Steganography class
1 == StegCrypt class
2 == MultiStegCrypt class
3 == FragMultiStegCrypt class
1) Hiding Text:
Usage:
> run HideText <steg type number> <text file> <PNG file>
e.g.
> run HideText 0 examps\Comparison.java images\waterlilies.png
- use Steganography class (0) to hide the text in
examps\Comparison.java inside the image images\waterlilies.png,
saving the modified image in images\waterliliesMsg.png
> run HideText 3 examps\Painter.java images\bigCat.png
- use FragMultiStegCrypt class (3) to hide the text in
examps\Painter.java inside the image images\bigCat.png,
saving the modified image in images\bigCatMsg.png
---------
2) Extracting Text:
Usage:
> run RevealText <steg type number> <PNG file>
e.g
> run RevealText 0 images\waterliliesMsg.png
- use Steganography class (0) to extract the text from
images\waterliliesMsg.png, saving it in images\waterliliesMsg.txt
> run RevealText 3 images\bigCatMsg.png
- use FragMultiStegCrypt class (3) to extract the text from
images\bigCatMsg.png, saving it in images\bigCatMsg.txt
----------------------------
Jasypt Installation
Download Jasypt v.1.5 from http://www.jasypt.org/
(jasypt-1.5-dist.zip; 2.4 MB), unzip it,
and store jasypt-1.5\ in a convenient location (e.g. c:\jasypt-1.5\).
---------
Last updated: 6th June 2009
Java-Stego.rar_java
版权申诉
47 浏览量
2022-09-23
12:34:07
上传
评论
收藏 1.96MB RAR 举报
weixin_42651887
- 粉丝: 79
- 资源: 1万+
最新资源
- 谷歌浏览器自动化测试版113.0.5672.0(包含linux,windows32/64,mac三个版本,不会自动更新)
- uniapp中tab切换,底部内容跟着移动,相反,底部移动,tab也跟着切换-组件
- 基于JS+TS实现跨平台3D相机控制器-附项目源码-优质项目分享.zip
- 跨相机-基于Rust实现的跨平台相机捕获-附项目源码-优质项目分享.zip
- odise 14离线安装包 大众斯柯达奥迪 5054 6153
- 网页设计期末作业-纯html加css+少量js-盗墓笔记旅游导航网站.rar
- 算法笔记模拟退火.rar
- MATLAB大数据仿真案例-蚁群算法(ACO)用于求解旅行商(TSP)问题.rar
- 基于yolov5的吸烟行为检测源码+模型.zip
- MySQL基础知识-个人笔记.rar
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈