I dont know the key in mode cbc, i tried write script python with expect it will return MIIE... but it doesnt
from base64 import b64decode, b64encode
from Crypto.Cipher import AES
data = "FJsww7LryZQFxKnP9TRHoSXNn7OP1/Dsq7vJNiB/I8GUgHxwb2s1dEwSHR0KBD4S"
data = b64decode(data)[:16]
key = b"qwerty0123456789"
iv = bytes.fromhex("4F6CAB2522DE70629D6DABB100908030")
cipher = AES.new(key, AES.MODE_CBC, iv)
data = cipher.decrypt(data)
print(b64encode(data)) #b'XFuamWKJEaRshBbE098olw=='
Hopefully someone can provide python pseudocode
The OpenSSL statement generates an encrypted PKCS#1 key. Decryption with Python is possible with e.g. PyCryptodome or Pyca/Cryptography:
Both implementations output the PEM encoded key in PKCS#1 format.
Alternatively, a direct decryption is also possible. The second DEK-Info value provides the hex encoded IV. The first 8 bytes of the IV are used as salt for the key derivation. The key is derived as MD5 hash of the concatenation of UTF8 encoded password and salt.
A possible decryption with PyCryptodome is:
The direct decryption provides the private key
decKeyas DER encoded key in PKCS#1 format, which is then converted to a PEM encoded key.