how can I encrypt audio file or signal using xor

조회 수: 2 (최근 30일)
davidop
davidop 2016년 4월 4일
댓글: Elyaser Ben Guno 2020년 8월 9일
Processes involves, inputing audio on matlab, converting it to binary form (matrix) then encrypting using XOR (probably an otp)
  댓글 수: 5
davidop
davidop 2016년 4월 6일
편집: davidop 2016년 4월 6일
I wish to store the audio as both data file and audio file since I would love to listen to the encrypted file and also decrypt it @Roberson
akshatha Sushma
akshatha Sushma 2018년 4월 5일
can u please share the code for xoring the binary form of .wav into cipher text?

댓글을 달려면 로그인하십시오.

채택된 답변

Walter Roberson
Walter Roberson 2016년 4월 6일
Use the 'uint8' option of getaudiodata(): you can xor against that.
repmat() your key as many times as you need to be exactly as long as your binary signal, and then you can xor on that.
  댓글 수: 4
Walter Roberson
Walter Roberson 2020년 8월 9일
Audio files do not require double / floating point to be played.
You read (most) audio files as integer instead of double by adding the option 'native' top audioreader()
You can pass uint8 data to audiowriter() and it will write them to the file.
You can play uint8 data with audioplayer()
Elyaser Ben Guno
Elyaser Ben Guno 2020년 8월 9일
thanks sir, it works

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Audio and Video Data에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by