开发F5代码所需的帮助(用于图像隐写) [英] Help needed for developing F5 code (for image steganography)

查看:183
本文介绍了开发F5代码所需的帮助(用于图像隐写)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

伙计们只需通过下面给出的剪切说明

使用此算法我需要使用此算法隐藏/取消隐藏数据,以便将数据数据转换为图像



下面的代码是在java中我只需要知道需要做什么正确的更改....(但我的项目是在c#il稍后转换它..)

&我根本不信任使用dll类(如果有的话)





Guys just go through the snipped given below
Using this algorithm i need to hide/unhide data for time being an array of data into image using this algorithm

The code below is in java well i just need to know what are the proper changes that are needed to be done....(However my project is on c# il be converting it later it..)
& im not in-trusted to use dll classes at all(if there)


F5Random random = new F5Random(password.getBytes());
Permutation permutation = new Permutation(coeff.length, random);
int k = determineCodeParameter(coeff, embeddedData.available());
n = (1<<k)-1;
if (n > 1) { //use matrix encoding (1, n, k)
int kBitsToEmbed; int extractedBit; int hash; int s;
int[] codeWord = new int[n]; int startOfN=0; int endOfN=0;
embeddingLoop:
for (;;) { //End continuous loop
if (embeddedData.available()==0)
break; //End of message, leave end continuous loop
kBitsToEmbed = embeddedData.readBits(k);
do { //embed k bits
j = startOfN;
for (i=0; i22 if (j>=coeff.length) //

break embeddingLoop; // beende Endlosschleife
shuffledIndex = permutation.getShuffled(j);
if (shuffledIndex%64 == 0) continue; // skip DC
if (coeff[shuffledIndex] == 0) continue; // skip 0
codeWord[i++]=shuffledIndex;
}
endOfN = j; //notice codeword end
hash = 0;
for (i=0; i<n;>34 if (coeff[codeWord[i]] > 0)
extractedBit = coeff[codeWord[i]]&1;
else
extractedBit = 1-(coeff[codeWord[i]]&1);
if (extractedBit == 1)
hash ^= i+1;
}
s = hash ^ kBitsToEmbed;
if (s==0) break; //no change is necessary
if (coeff[codeWord[--s0) // decrement amount
coeff[codeWord[s]]--;
else
coeff[codeWord[s]]++;
} while (coeff[codeWord[s]]==0); 
startOfN = endOfN; // continue with new coefficients
}
} else ... // without matrix coding



F5嵌入函数的Java源代码(简体)


Java source code of the embedding function of F5 (Simplified)

推荐答案

这个问题没有任何意义,因为F5 是特定浏览器特有的东西,而不是标准或其他东西。我不知道你想要隐藏什么功能,但你实际上无法隐藏用户的任何内容。隐藏任何东西都没有意义。



目前还不清楚它与隐写术的关系。



可能这个问题仅仅是客户端和服务器端发生的混乱的结果,以及Web标准的一部分,什么不是。



-SA
This question does not make any sense, because "F5" is something specific to a particular browser, not a standard or something. I have no idea what functionality you want to "hide", but you actually cannot hide anything from the user. And hiding anything does not make sense.

It''s not clear how it is related to steganography.

Probably, this question is merely a result of big confusion of what happens on client and server sides, and what is a part of Web standards and what not.

—SA


这篇关于开发F5代码所需的帮助(用于图像隐写)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆