The openssl man page says the "-pass pass:[password]" option for the openssl command is not secure because it's visible to utilities like ps
, but is it secure through bash?
Like this:
#!/bin/bash
read -s psword
openssl enc -pass pass:$psword -aes-256-cbc -in text.plaintext -out text.encrypted
I've run a program like this on my computer and all ps
seems to see is "openssl
". Will other utilities be able to see the password?