Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

426
Vistas
php8 openssl openssl_cipher_iv_length returns 0

I'm using a payment gateway for WordPress and it has below code to generate an encryption for bank:

 private static function encrypt_tripledes($data, $secret)
{
    $method = 'DES-EDE3';
    $iv = openssl_random_pseudo_bytes(openssl_cipher_iv_length($method));
    $encrypted = openssl_encrypt($data, $method, $secret, 0, $iv);
    return $encrypted;
}

The problem is that openssl_cipher_iv_length returns 0 and the whole plugin & WordPress crashes when it wants to redirect to the bank payment website. how can I solve this problem?

Here is the error message when it wants to redirect to the bank:

Fatal error: Uncaught Error: Length must be greater than 0
over 4 years ago · Santiago Trujillo
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda