LSB in audio stegnography
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Muhammad fayyaz
el 28 de Abr. de 2014
Comentada: Walter Roberson
el 31 de Mzo. de 2016
% Embed message length in the first 16 samples
% (I don't understand how. Can any one explain?)
str = dec2bin(length(message),16);
if length(message) < length(y)
for a = 1 : length(str)
y(a, nbits-1) = str(a);
end
else
disp('error')
end
I don't understand how they are embedding here. Please help me.
1 comentario
Respuesta aceptada
Walter Roberson
el 28 de Abr. de 2014
They are converting the message length to 16 text-coded binary locations, and are taking the resulting 16 bits and using them to replace the least significant bits of 16 successive text-coded binary representations.
0 comentarios
Más respuestas (2)
Muhammad fayyaz
el 29 de Abr. de 2014
2 comentarios
Walter Roberson
el 29 de Abr. de 2014
Assume that the original signal has been converted into binary by using dec2bin(). dec2bin() returns an array of characters, each one being the character '0' or the character '1'. Then y(a,nbits-1) is a straight forward replacement of one element of the array with one element of the character vector "str".
Somewhere after this section of code, you will find a call to bin2dec(y) . That operation will take the character array y and convert the representation back into decimal numbers.
Ver también
Categorías
Más información sobre Encryption / Cryptography en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!