I'm trying to run OpenSSL using
TProcess.Create.Executable and pass a string to OpenSSL instead of a filename. If I were to run the command in CMD, it would be look like this:
echo 'SomeTextToSecure' | openssl enc -a -out file.txt -pass pass:password123
But how would I run an executable using
TProcess.Create.Executable, all while including the
echo part? Obviously I could use
RunCommand, but this is not preferable in this situation. Or is there another way to pass a string when the parameter expects a filename in CMD? Any ideas are much appreciated!