I have a server that generates reports automatically. Reports are presented in CSV format. I need to be able to encrypt a file directly, without third-party compression (without WinZIP or WinRAR).
I thought the best idea is to convert CSV to XLS and then password protect the XLS file through all of Powershell. Unfortunately, I do not have Office installed on the server, and all the examples I found to convert the file in this way require Excel to be installed.
Does anyone know a way to convert CSV to XLS in Powershell without installing Excel? Or, if not, can you come up with a better way to protect the password of a CSV file without compressing it in ZIP or RAR?
blizz source
share