how to encrypt and decrypt an audio file using AES algorithm in matlab ? the audio file is in binary form.

7 views (last 30 days)
i m begginner , as i m working on audio steganography , i want to encrypt my audio file using AES algorithm in matlab, but am having difficulties as i have never used it before , my audio file is in binary form n i have to encrypt that binary values of my audio file. i dont know how to apply that algorithm on audio file , so please help me its my utmost request.
  3 Comments
Aiswarya Babu
Aiswarya Babu on 15 Apr 2021
Hi,
How you get audio file in binary? Please help me! I'am doing project in 128 bit aes encryption of voice. So for that voice signal need to be converted to digital data. Which has to be provided as the input to AES encryption.
Thankyou
Walter Roberson
Walter Roberson on 15 Apr 2021
filename = 'croc.wav';
fid = fopen(filename);
data = fread(filename, [1 inf], '*uint8');
fclose(fid)
You now have a vector of uint8 data that is the audio file
Note that this is the audio file not the audio information by itself. The audio file might store the audio in compressed form, and might have information such as author name and copyright and title; it will certainly have the sampling frequency.

Sign in to comment.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!