How to use the Web Crypto API to decrypt a file created with OpenSSL?
问题 I am trying to decrypt a file that was created using the OpenSSL command-line interface. This file was created with: openssl aes-256-cbc -a -in file.txt -out file_encrypted.txt And can be decrypted with: openssl aes-256-cbc -d -a -in file_encrypted.txt By using the -p flag I can retrieve the actual value, salt and IV which will be required by the WebCrypto API: > openssl aes-256-cbc -d -a -p -in file_encrypted.txt salt=F57F1CC0CD384326 key