I'd like to use the ruby openssl library to generate the same thing as this openssl command:
$ openssl passwd -1 mypassword Right now, in my code, I'm doing this:
mypass = `openssl passwd -1 mypassword` ... this works, but it seems silly. I feel like you should be able to use OpenSSL::Digest to achieve the same result. However, I can't seem to get it to work.