import time
start_time = time.time()
for i in range (0, 10000):
print('openssl rsautl -encrypt -pubin -inkey public.pem -in message.txt -out message_enc.txt')
print("--- %s seconds ---" % (time.time() - start_time))
I want to pass the string within the print method to the Linux command line and run it to get the average encryption time of RSA. I can not seem to figure out how to do this though. I could only find out how to pass arguments from the command line into a Python script.