When I perform the following action in the terminal, I get a different decryption text compared to the message showing that these keys are matched with a unique encryption
openssl enc -des-ecb -in text.in -out cipher.txt -k '96508092' openssl enc -d -des-ecb -in cipher.txt -out text.in -k '82514145'
But when I implement it when programming using <openssl/des.h> , Crypto.cipher, pyDes, I got the same decrypted text. I found why I get the same text, and that is because these 8-byte keys are mapped to the unique 7-byte key 0x3832343134313401. See My previous question. Why can I encrypt data with one DES key and successfully decrypt with another?
My question is: how is it implemented in OpenSSL terminal commands in different ways compared to the mentioned libraries, that it can match these 8-byte keys with unique encryption?
python algorithm openssl encryption pyopenssl
ceasif
source share