$password = "OpenCrypt"; // Should have been previously generated in a cryptographically safe way $secretKey = 'SECRET_KEY'; // You can pass the IV as argument or it ...