问题 I am trying to recreate some openssl php code in the command-line. I have been able to get the following php code to work: $key = 'aaaaaaaabbbbbbbbccccccccdddddddd'; $key = pack('H*',$key); $data = 'b5057bbc04b842a96144a0f617f2820e'; $data = pack('H*',$data); $result = openssl_decrypt($data,'des-ede', $key, OPENSSL_RAW_DATA | OPENSSL_ZERO_PADDING); The Command I'm Working on (Ubuntu) openssl des-ede -in encrypted-data.txt -out decrypted-data.txt -d -K aaaaaaaabbbbbbbbccccccccdddddddd -nopad