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!