how can I encrypt audio file or signal using xor
조회 수: 2 (최근 30일)
이전 댓글 표시
Processes involves, inputing audio on matlab, converting it to binary form (matrix) then encrypting using XOR (probably an otp)
댓글 수: 5
akshatha Sushma
2018년 4월 5일
can u please share the code for xoring the binary form of .wav into cipher text?
채택된 답변
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
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()
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Audio and Video Data에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!