Secure Options for storing Openssl password on a server (Linux, Python, CherryPy) -


i've implemented http server (cherrypy , python) receives encrypted file client (android). i'm using openssl decrypt uploaded file. i'm using openssl -enc -pass file:password.txt -in encryptedfile -out decryptedfile perform decryption on server side. can see password used openssl stored in plain text file (password.txt).

is there more secure way store openssl password?

thanks.

pass through higher fd, , use fd in command line. note you'll need use preexec_fn argument set fd before process gets run.

subprocess.popen(['openssl', ..., 'file:/dev/fd/12', ...], ...,   preexec_fn=passtofd12(password), ...) 

Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -