Which encryption method is used exactly?

Friendica is using the “mcrypt” library to talk to Diaspora. Problem is that this library is deprecated and we need a replacement.

To chose the right method it would be good to know which method is used exactly. I know that it is AES, The mode is CBC, but there seems to be some more details that I don’t know by now.

diaspora* uses “AES-256-CBC” as encryption and then base64 encodes it, see here or here (that’s already the documentation for the new format, but the encryption itself didn’t change, only the wrapping changed).