Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

425
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda