How to do Steganography in Audio using matlab?
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I have an audio message and a secret audio message that I want to hide inside the audio message (using Fourier Transform) ,the listener should not discover the difference between the old and the new one .then i want to retrieve the secret message from the new audio message and play it, hearing the same information found in the original message
0 commentaires
Réponses (1)
Walter Roberson
le 29 Avr 2020
Steganography does not care what the source is of the digital data that is to be embedded into the destination.
So what you do is first read the second message into an array. Doing this reduces the problem of doing steganography of known data into an audio stream without caring about where the data came from.
2 commentaires
Walter Roberson
le 9 Mai 2020
400000, 450031, 500000, 600000 are all examples of "magic numbers". They just appear in the code with no explanation for why they are those particular values, and the code is likely to break badly if the content of the input file are changed.
Total Samples in b = 50031
okay, but
a (400000:450031)= b;
That attempts to set 50032 locations in A to the 50031 entries in b. Suppose for example b is length 7, then a(20:27) would refer to a(20), a(21), a(22), a(23), a(24), a(25), a(26), a(27) which is 8 locations not 7.
If you want to copy b into part of a then you need
a(Starting_Location : Starting_Location + length(b) - 1) = b
If the idea of your code is that you replace the middle of the fft, then because fft of real values of odd length gives complex conjugate reversed values, like x(4), x(5), x(6), conj(x(6)), conj(x(5)), conj(x(4)), but of even length gives complex conjugate reversed values like x(4), x(5), x(6), conj(x(5)), conj(x(4)) then you need to ensure that your a and b are both odd lengths or else both even lengths.
To replace the center of the fft, you should be calculating where the center is rather than using hard-coded positions.
Voir également
Catégories
En savoir plus sur Audio I/O and Waveform Generation dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!