Closed Lbatson closed 7 years ago
@Lbatson Hi, The AES
function just uses CommonCrypto
under the hood. For openssl
question, I think it's best that you can ask in their repo https://github.com/openssl/openssl. They can answer you better than I do
Looking at the implementation of
AES.encrypt
, it looks like it usesHash.SHA384
for the key and iv that gets passed toCCCrypt
. My question is how does this translate back out to using something likeopenssl
to decrypt. I was trying something likeopenssl enc -aes128 -k test -p -base64 -d -in test.enc
however I continually getbad decrypt
orbad magic number
I assume I'm not passing the correct parameters. It also supportsaes-128-cbc
cipher, which doesn't seem to work either. I think i'm missing something with the hashing piece and iv. Any ideas?