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!