JavaEar 专注于收集分享传播有价值的技术资料

2个回答

    最佳答案
  1. 参考答案2
  2. One way...

    In the EncryptData method of that article it accepts a string to be encrypted which it then converts to bytes before encrypting it. To get the bytes from a file, you can use a FileStream.

    Simply change the method so that the parameter is a filepath instead of text data, and use the filestream to Read/Write bytes as required. Likewise for the DecryptData method.