How to use protection in communication api

Hi, I’m wondering how to use it or

echo bin2hex(openssl_encrypt(file_get_contents("./myapi.json") , “AES-128-CBC”, “SENHA2”, OPENSSL_RAW_DATA, “SENHA1”));

it returns encoder json value with 2 super protected password

site para exemplo para ver quem conseguir mi ajuda