Click here to Skip to main content
15,888,022 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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)


C#
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

Java source code of the embedding function of F5 (Simplified)
Posted
Updated 4-Mar-13 8:38am
v5
Comments
OriginalGriff 4-Mar-13 14:15pm    
Never post your email address in any forum, unless you really like spam! If anyone replies to you, you will receive an email to let you know
Arora Varun 4-Mar-13 14:31pm    
well im a newbie ... Thanx aniwaz...
Member 14739192 12-Mar-20 10:32am    
can i get the code in c#?

1 solution

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.

[EDIT] 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
 
Share this answer
 
v2
Comments
Sergey Alexandrovich Kryukov 4-Mar-13 14:28pm    
Thank you, I do know how steganography works, but I only address your question in the title, about F5. It's not at all clear how it is related to steganography...
—SA
Arora Varun 4-Mar-13 14:27pm    
My Friend plz hav a look on the link given below and have a glance on th pdf...



"https://docs.google.com/viewer?a=v&q=cache:R8-xqSR_fpkJ:f5-steganography.googlecode.com/svn/tags/release-0.3/F5%2520Steganography.pdf+&hl=en&gl=in&pid=bl&srcid=ADGEESh2c_HBTSXTOE-rrZT5Itnr6kzi79R2iWtrwU54hBGaCzFfyESYizDwOSWS32_AMlu1IqQbKqKu6luG7EnV-c5_KA5Aam6Sqv0TRmEtmL1VC9_ssdYSThZTCLZFwKThZDJBjnqs&sig=AHIEtbSoeAcefzZYMOqlZJbNIIldNczJCQ"
Sergey Alexandrovich Kryukov 4-Mar-13 14:31pm    
Thank you, I do know how stegagography works.
I only addressed the question you asked in the title, about F5. It's not clear how is it related to stegagography.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900