Skip to main content
Tweeted twitter.com/#!/StackSecurity/status/292663579340058624
edited tags
Link
Thomas Pornin
  • 328.6k
  • 60
  • 800
  • 969
Source Link

openssl: recover key and IV by passphrase

A large amount of files were encrypted by

    openssl enc -aes-256-cbc -pass pass:MYPASSWORD

Openssl should derive key+IV from passphrase. I'd like to know key+IV equivalent of that MYPASSWORD. Is that possible?

I know MYPASSWORD. I could decrypt and then re-encrypt with new known key+IV with:

    openssl enc -d -aes-256-cbc -pass pass:MYPASSWORD
    openssl enc -aes-256-cbc -K MYKEY -IV MYIV

But the problem is that the amount of data is quite large.