将二进制文件转换为.wav,然后使用c Sharp读取文件.wav?

将二进制文件转换为.wav,然后使用c Sharp读取文件.wav?

问题描述:

我正在用c shrp做一个项目,这需要我对wave文件进行加密.那么,是否存在将wave文件转换为二进制文件并返回的简单方法?我将对二进制数据应用加密算法.

I''m doing a project in c shrp which requires me to encrypt a wave file. So, is there a straight forward process to convert a wave file into binary and back? I''ll be applying an encryption algorithm on the binary data.

所有文件都是二进制文件.这就是计算机存储的工作方式.

但是,最简单的读入加密方式可能是 System.IO.File.ReadAllBytes [
All files are in binary. That''s how computer storage works.

But the simplest way of reading it in for encryption would probably be System.IO.File.ReadAllBytes[^] (I''d link you to Microsoft''s documentation for it but MSDN is down today).