419 questions
4 votes
1 answer
140 views
How to decrypt a value in Python that was encrypted using PHP openssl
I have a value that was encrypted using PHP openssl using cipher AES-CBC-256 but the passphrase for the final value was also encrypted using the same method. openssl_encrypt($key, $cipher, $passphrase,...
1 vote
1 answer
199 views
FPDF's SetProtection script password protecting since Amazon Linux 2023
We have been using FPDF on our AWS EC2 instances for many years and for some of the documents, we use the SetProtection script to encrypt them, allowing only "print" as the possible option. ...
0 votes
0 answers
77 views
Trying to verify a signature using openssl_pkey_get_public()
I'm trying to verify a signature using the Volume API for make a payment. According to them, I need to, To verify the signature, consume the original, unmodified payload sent from Volume and verify it ...
-1 votes
1 answer
163 views
PHP function openssl_encrypt cipher operation failing
I have a PHP script that will encrypt data to store in a database, but when I run the script, the openssl_encrypt returns false with the error: "error:1C800066:Provider routines::cipher operation ...
2 votes
1 answer
341 views
how to create CSR in PHP?
I am trying to create CSR using PHP and OpenSSL extension, but when I do that it gives me an error which says: Failed to generate private key: error:2006D080:BIO routines:BIO_new_file:no such file ...
0 votes
0 answers
152 views
PHP Sodium Encryption/Decryption Fails Despite Consistent Configuration and Keys
I'm experiencing an issue with PHP Sodium encryption and decryption. Despite ensuring that the keys, configuration, and environments are consistent, decryption consistently fails. PHP Version 8.2 ...
0 votes
1 answer
875 views
In PHP openssl, how to get public certificate PEM for website?
To get the public certificate (PEM) for a website in FireFox, I do this: Go to website, eg., https://stackoverflow.com , and click on padlock icon in address bar. Click on Connection secure -> ...
0 votes
2 answers
691 views
Encrypt in JS and Decrypt in PHP using AES encryption algorithm in GCM and Base64 encoding
I am try to Encrypt data in JS and Decrypt it in PHP using AES encryption algorithm in GCM and Base64 encoding. But during decryption I always get false as result without any openssl error. I have ...