Is there a way to get the output value from a subprocess that decrypts a file? Getting a variable with the output and creating the decrypted file in the directory are both good solutions - I just need to get the decrypted value.
Code:
decryption_result = subprocess.run(['openssl', 'decrypt', '-inkey', private_key_file,'-in', message_file, '-out', name])