I have a file that was encrypted by someone else with a AES-256-CBC algorithm.
Unfortunately I only have the file and a password string.
I didn't get any salt. I can run OpenSSL and use the following command to successfully decrypt the file without specifing any salt:
openssl aes-256-cbc -d -a -in [...] -out [...]
In C# I've tried to use a RijnadelManaged and the Rfc2898DeriveBytes class, but they require salt bytes.
Using a RijnadelManaged together with a ICryptoTransform gives me back some other crypto bytes but no clear text.
The password length and block size go along with each other, there was no exception dropped claiming they didn't.
Of course an exception will be dropped if I use the first method and specify a random salt.
How can I decrypt this file with only the information that I've got?