Hi, this is puzzling me. I am using -shell- or ! to encrypt and decrypt files en masse with openssl, on Mac OSX El Capitan with Stata 14.2/SE. I might have a line like this:
to encrypt, and this:
to decrypt. In each case, if I paste the same line (minus the !) into the terminal, it runs just fine. But from Stata, the first line runs and the second one returns an error:
openssl:Error: 'aes256' is an invalid command.
This is an error issued by openssl from the looks of it, and aes256 is a valid command for openssl (as shown by the way it runs in the terminal), so it seems to me that something odd is happening to the command on its way out of Stata. Does this ring any bells for anyone? Have I done something really silly that I just can't see?
Robert
Code:
! openssl enc -aes256 -in "./folder/data.xlsx" -out "./folder/data.xlsx.enc" -k thepassword
Code:
! openssl aes256 -d -in "./folder/data.xlsx.enc" -out "./folder/data.xlsx" -k thepassword
openssl:Error: 'aes256' is an invalid command.
This is an error issued by openssl from the looks of it, and aes256 is a valid command for openssl (as shown by the way it runs in the terminal), so it seems to me that something odd is happening to the command on its way out of Stata. Does this ring any bells for anyone? Have I done something really silly that I just can't see?
Robert
Comment