diff --git a/Password Manager/PasswordGenerator.cs b/Password Manager/PasswordGenerator.cs index 12c27ac..27a93f9 100644 --- a/Password Manager/PasswordGenerator.cs +++ b/Password Manager/PasswordGenerator.cs @@ -40,8 +40,8 @@ namespace Password_Generator { StartInfo = new ProcessStartInfo { - FileName = "echo", //TODO: pipe the return value of RandomStr to gpg with the --quiet --encrypt --recipient {recipient} flags - Arguments = $"{RandomStr(length, no_symbols)} | gpg --quiet --encrypt --recipient {recipient}", + FileName = "cmd.exe", //TODO: pipe the return value of RandomStr to gpg with the --quiet --encrypt --recipient {recipient} flags + Arguments = $"echo {RandomStr(length, no_symbols)} | gpg --quiet --encrypt --recipient {recipient}", UseShellExecute = false, RedirectStandardOutput = true, CreateNoWindow = true