Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

424
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!